View Single Post
 
Old 06-16-2023, 01:45 PM
gmaxey gmaxey is offline Windows 10 Office 2019
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,601
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

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
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote