Go To What:=wd Go To Bookmark, Name:="Date Plus21" Selection. but i need to place this code on a word doc that's being used as a label.
Insert Before Format((Date 21), "MMMM dd, yyyy") End Sub Now in your document place a bookmark in the spot where you want the date to appear. Now, when you open the document, the current date plus 21 days will appear at the bookmark. so the date is being repeated about thirty times on the doc.
, etc., or use the Format, Typesetting, Advance feature to specify an exact location.
Note that it comprises an outer field with 32 other fields nested at various depths within it. The way to enter this is press ctrl f9, type QUOTE and then press enter, then ctrl f9 and type SET Delay 21. The last piece of code( "MMM d, yyyy" ) is where you define the date format you want displayed.
Alternatively you could use a macro like this: Sub Plus Three Weeks() Selection. \@ "MMM d, yyyy"} As Graham stated, it contains a series of nested fields. Move your cursor between the 2 remaining }} and press enter.
--Paul "The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years.
I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing.