Splendid, thank you (I think I need another "End Sub" at the end, right?).
However, I note that I already have macros under these names as follows:
Sub AutoOpen()
Dim v As Variable
For Each v In ActiveDocument.Variables
If v.Name = "ShowDM" Then
If ActiveDocument.Variables("ShowDM") = "yes" Then
ActiveWindow.DocumentMap = True
Else
ActiveWindow.DocumentMap = False
End If
Exit Sub
End If
Next v
ActiveWindow.DocumentMap = False
End Sub
Sub AutoNew()
Dim v As Variable
For Each v In ActiveDocument.Variables
If v.Name = "ShowDM" Then
If ActiveDocument.Variables("ShowDM") = "yes" Then
ActiveWindow.DocumentMap = True
Else
ActiveWindow.DocumentMap = False
End If
Exit Sub
End If
Next v
ActiveWindow.DocumentMap = False
End Sub
I'm not sure how I acquired these and I'm not really sure what they do
(obviously something to do with DocumentMap, but I'm not sure what
exactly...), and I'm minded to delete them.
Is there anything I should be aware of before deleting these existing
macros?
Thank you.
Herbert Eppel
www.HETranslation.co.uk