C
CISadmin
Hello, any help will be greatly appreciated.
I have a basic macro (See below)
I can manually assign a shortcut key to the macro using the mouse.
Is it possible to assign the shortcut key with VBA code for Word 2007?
Macro is auto-loaded from Add-in.
Sub COEShowText()
'
' COEShowText Macro
' COE Show Trainer Text
'
Selection.Find.ClearFormatting
Selection.Find.Font.Color = -603914241
Selection.Find.Replacement.ClearFormatting
Selection.Find.Replacement.Font.Color = 15073280
With Selection.Find
.Text = ""
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
End Sub
Thanks in advance,
I have a basic macro (See below)
I can manually assign a shortcut key to the macro using the mouse.
Is it possible to assign the shortcut key with VBA code for Word 2007?
Macro is auto-loaded from Add-in.
Sub COEShowText()
'
' COEShowText Macro
' COE Show Trainer Text
'
Selection.Find.ClearFormatting
Selection.Find.Font.Color = -603914241
Selection.Find.Replacement.ClearFormatting
Selection.Find.Replacement.Font.Color = 15073280
With Selection.Find
.Text = ""
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
End Sub
Thanks in advance,