I have one page with the current date.
On the second page I would like the date to be current date plus 1 day
the third page i would like the date plus 2 days
and so forth...
So when it's opened it'll update all the dates from the current day...
Open it up and there are many examples of what you can do, find the correct one, if you highlight the example then right click, you can toggle the field to see the code. I cut n paste into my document.
The used the following macro to update the fields every time I open that document in word:
Code:
Sub AutoOpen()
Dim aStory As Range
Dim aField As Field
For Each aStory In ActiveDocument.StoryRanges
For Each aField In aStory.Fields
aField.update
Next aField
Next aStory
End Sub
Hope that helps anyone, if the download link fails let me know and I can host it elsewhere. Any problems let me know e.g. I had to remove +4800 out of the third line of code that calculates the date, odd why that was there
Signature/Avatar nuking: none (can be changed in your profile)
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum