MEUserII
Board Regular
- Joined
- Oct 27, 2017
- Messages
- 91
- Office Version
- 365
- 2021
- 2019
- 2016
- 2013
- Platform
- Windows
Is there a prebuilt way in Excel VBA to repeat simple actions? For example, if I want to repeat the following single action of SendKeys in the following Excel VBA macro is there a prebuilt way to do this?
For example, may be in code something that is simple like this?:
Code:
Sub Test1()
SendKeys ("{TAB}")
SendKeys ("{TAB}")
SendKeys ("{TAB}")
SendKeys ("{TAB}")
SendKeys ("{TAB}")
SendKeys ("{TAB}")
SendKeys ("{TAB}")
End Sub
For example, may be in code something that is simple like this?:
Code:
Sub Test2()
SendKeys ("{TAB}")(x7)
End Sub
Last edited: