![]() |
|
#1
|
|||
|
|||
![]()
Thanks, Charles and Andrew. I've encountered a more fundamental problem, it seems. 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? |
#2
|
||||
|
||||
![]()
To display the Styles pane with VBA, you can use the following line of code:
Code:
Application.TaskPanes(wdTaskPaneFormatting).Visible = True
__________________
Stefan Blom Microsoft Word MVP Microsoft 365 apps for business Windows 11 Professional Last edited by Stefan Blom; 05-10-2024 at 01:58 PM. |
#3
|
|||
|
|||
![]() Quote:
See How to Modify a Recorded Macro by Jay Freedman. |
![]() |
Tags |
buttons, key presses |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do animate so: click on an image, then a larger image appears, then click again & text overlaid? | ship69 | PowerPoint | 1 | 09-30-2019 04:38 PM |
Find drop down list entry with keystrokes | Empy | Excel Programming | 3 | 06-09-2018 06:10 AM |
![]() |
ld2x07 | Word | 5 | 10-10-2014 05:13 AM |
![]() |
baudinot | Word | 1 | 01-05-2012 03:37 PM |
Slow (delayed) keystrokes | Jim Ogren | Word | 0 | 07-23-2009 07:47 PM |