Hi there,
I'm new to the macro business, I'm not sure if I'm in the right forum here, I'm sure someone will tell me if I'm not,
Im trying to record a macro that will make my life infinitly easier and more efficient.
I have recorded the macro below, does anybody know how to create a macro that will repeat a command as simple as <Enter, PF2, PF2, Enter> as many times as you request?
It would be great if I could reply to the MsgBox with a number like "10" and the <Enter, PF2, PF2, Enter> sequence would be repeated automatically 10 times..
MsgBox"How many reversals would you like to perform?"
Sess1.Screen.Sendkeys("<Enter>")
Sess1.Screen.WaitHostQuiet(g_HostSettleTime)
Sess1.Screen.Sendkeys("<Pf2>")
Sess1.Screen.WaitHostQuiet(g_HostSettleTime)
Sess1.Screen.Sendkeys("<Pf2>")
Sess1.Screen.WaitHostQuiet(g_HostSettleTime)
Sess1.Screen.Sendkeys("<Enter>")
Sess1.Screen.WaitHostQuiet(g_HostSettleTime)
System.TimeoutValue = OldSystemTimeout
End Sub
It would be great if someone could even point me in the right direction,
Cf