S
Sydney
Hi
I am trying create a macro that prompt a message box only if a particular
style has been used in a document.
Below is what I have tried, however, the message box appears regardless if
the style is in use or not:
Dim objStyle As Word.Style
With ActiveDocument
If objStyle.InUse And objStyle.NameLocal = "MyStyle" Then
MsgBox "Incorrect Style in use"
End If
End With
With thanks
I am trying create a macro that prompt a message box only if a particular
style has been used in a document.
Below is what I have tried, however, the message box appears regardless if
the style is in use or not:
Dim objStyle As Word.Style
With ActiveDocument
If objStyle.InUse And objStyle.NameLocal = "MyStyle" Then
MsgBox "Incorrect Style in use"
End If
End With
With thanks