View Single Post
 
Old 12-10-2014, 07:00 AM
supremegrandruler supremegrandruler is offline Windows 7 32bit Office 2007
Novice
 
Join Date: Dec 2014
Posts: 4
supremegrandruler is on a distinguished road
Default Macro not running on exiting legacy drop down menu.

I have a simple drop down menu and right-cliked it -> Exit and selected my macro (posted below). But when I select an item from the menu, nothing happens.

Code:
Public Sub Test1()
    With ActiveDocument.Content.Find
        .Text = "BOLD"
        .MatchWildcards = True
        .MatchCase = True
        .Replacement.Font.Bold = True
        .Execute Replace:=wdReplaceAll
    End With
End Sub
Reply With Quote