View Single Post
 
Old 05-10-2024, 02:30 PM
Charles Kenyon Charles Kenyon is offline Windows 11 Office 2021
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,536
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Quote:
Originally Posted by wardw View Post
***
I tried to create a macro I called Test1 to simply open the Styles dialog. While the macro was recording, I opened Home, then clicked the arrow in Styles to open the dialog. Then I stopped recording. The macro that appeared in VBA looks like this:

Sub Test1()
'
'Test1 Macro
'
'
End Sub

So no commands were recorded. When I closed the Styles dialog, then tried to run the macro, nothing happened.

I suspect there's a problem with dialogs and VBA. Any ideas on why this didn't record?
This is how it works (or does not work). There are a number of things that the recorder will not pick up. Even those it does pick up often create poor coding.


See How to Modify a Recorded Macro by Jay Freedman.
Reply With Quote