MEUserII
Board Regular
- Joined
- Oct 27, 2017
- Messages
- 91
- Office Version
- 365
- 2021
- 2019
- 2016
- 2013
- Platform
- Windows
I have an Excel 2016 VBA macro that changes the "Office Theme" under: File>Account>Office Theme; to the next theme. This macro should work as when I try and perform the macro's sequence of actions manually the sequence of actions is successful in changing the "Office Theme" - would anyone might know why this macro isn't then working?
CODE:
CODE:
Code:
Sub OfficeThemeChangeMacro()
Application.Wait (Now + TimeValue("00:00:01"))
SendKeys ("%FDY1")
Application.Wait (Now + TimeValue("00:00:01"))
SendKeys ("{DOWN}")
Application.Wait (Now + TimeValue("00:00:01"))
SendKeys ("{ENTER}")
Application.Wait (Now + TimeValue("00:00:01"))
'SendKeys ("{ESC}")
Application.Wait (Now + TimeValue("00:00:01"))
End Sub