noHandlebars
Technical User
The code below is currently on a time delay that will pause for 5 seconds and then go to the next designated macro:
Sub findA12()
Selection.Find.ClearFormatting
With Selection.Find
.Text = "A12"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute
'time delay command
Application.OnTime Now + TimeValue("00:00:05"), "findA27"
End Sub
Does anyone know if instead of having it on time delay, is it possible to have the user enter a keystroke that will have the code progress to the next macro?
Sub findA12()
Selection.Find.ClearFormatting
With Selection.Find
.Text = "A12"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute
'time delay command
Application.OnTime Now + TimeValue("00:00:05"), "findA27"
End Sub
Does anyone know if instead of having it on time delay, is it possible to have the user enter a keystroke that will have the code progress to the next macro?