![]() |
|
#2
|
|||
|
|||
|
I can't image how it is working as there is no such method in the Word Object model named "BookChange"
Code:
Sub ScratchMacro()
'A basic Word Macro coded by Gregory K. Maxey
Dim oRng As Range
Set oRng = ActiveDocument.Bookmarks("DatePP").Range
oRng.Text = Format(Now, "MMMM dd, yyyy")
ActiveDocument.Bookmarks.Add "DatePP", oRng
lbl_Exit:
Exit Sub
End Sub
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| REf Fields show Bookmark whole cell when Bookmark is created by code. | pmcpowell | Word VBA | 2 | 11-16-2019 07:05 PM |
| Inserting a bookmark | DavidTheToad | Word VBA | 1 | 06-04-2017 05:45 PM |
| Find Bookmark, move to bookmark, execute code, repeat | raymm3852 | Word VBA | 10 | 04-15-2016 06:21 PM |
Bookmark Not Showing Bookmark
|
RegAudit | Word | 6 | 03-16-2015 11:08 PM |
| vba to go to next bookmark | megatronixs | Word VBA | 2 | 06-08-2014 09:53 PM |