PeterMoran
MIS
Hi,
I have the following code which I want to use to create a locked date in a Word Document, but seem unable to get the syntax or code correct!
If I remember correctly Locking a Date originally seemed to me to be one of the Field options displayed when you specified "Date", but it does not seem to be there now!
Sub InsertNumDate()
'
' InsertNumDate Macro
' Inserts Numeric Date Locked! - "\!" Not at present!!
'
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:= _
"DATE ", PreserveFormatting:=True
' Selection.Fields.Locked = True 'To lock date in field - not in Word 07!
End Sub
Any help appreciated.
Peter Moran
I have the following code which I want to use to create a locked date in a Word Document, but seem unable to get the syntax or code correct!
If I remember correctly Locking a Date originally seemed to me to be one of the Field options displayed when you specified "Date", but it does not seem to be there now!
Sub InsertNumDate()
'
' InsertNumDate Macro
' Inserts Numeric Date Locked! - "\!" Not at present!!
'
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:= _
"DATE ", PreserveFormatting:=True
' Selection.Fields.Locked = True 'To lock date in field - not in Word 07!
End Sub
Any help appreciated.
Peter Moran