S
steve
I have found the below macro. It works fine.
However how can I make it so that it fill find Document1, Document2
etc to 9. In other words something like a global expression eg
Document?, where ? stands for a number between 1 and 9.
Sub WhatsMyFilename1()
Dim pString As String
pString = "Document1"
If ActiveDocument.FullName = pString Then
MsgBox "Whatever message you want"
End If
End Sub
However how can I make it so that it fill find Document1, Document2
etc to 9. In other words something like a global expression eg
Document?, where ? stands for a number between 1 and 9.
Sub WhatsMyFilename1()
Dim pString As String
pString = "Document1"
If ActiveDocument.FullName = pString Then
MsgBox "Whatever message you want"
End If
End Sub