#1
|
|||
|
|||
VBA: Toggle version of enabling reviewing toolbar via vba?
Good Morning from in-home isolation due to Covid-19! My first day on the forum. Hope it's a simple question.
I did a macro record to see how to get the Reviewing toolbar into my MS Word. The vba that came up was this: CommandBars("Reviewing").Visible = False In the past, I have received kind help in a couple of other scenarios re how to substitute 2 buttons (one true and one false) with one universal toggle button so that it was a one-stop shop type of affair. It just needed different coding. I've searched and searched on the net but haven't found a solution. If anyone knows, can you please advise what it might be for the above syntax so that I can just avoid clicks and proceed directly to turning the toolbar on and off via one button click accessed via a single macro? Thank you! (Word 2003, Win7) Last edited by Conall Kavanaugh; 04-05-2020 at 08:31 AM. Reason: Versions re Word + OS didn't appear in screen; added in post.) |
#2
|
|||
|
|||
I've not worked with WORD .. however, based on the line of code you provided ... try
this : Code:
Option Explicit Sub ReviewSel() If CommandBars("Reviewing").Visible = False Then CommandBars("Reviewing").Visible = True Else CommandBars("Reviewing").Visible = False End If End Sub |
#3
|
||||
|
||||
Or:
Code:
CommandBars("Reviewing").Visible = Not CommandBars("Reviewing").Visible
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#4
|
|||
|
|||
Quote:
This single line is more in line with other toggling scripts I have and it keeps things simple. It works just great and I just need to create a nifty icon for it on my toolbar and I'm good to go. Thanks macropod! Thanks and cheers! |
#5
|
|||
|
|||
Glad you found an answer !
|
#6
|
|||
|
|||
Thank you so much, Logit!
|
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Template not read properly even after enabling compatible with latest version | ashwini | PowerPoint | 1 | 12-17-2014 02:35 AM |
Can Word highlight the same text in the Reviewing Pane as in the main document? | wordistheword | Word | 4 | 09-09-2013 04:50 AM |
Toggle objects on / off with custom toolbar | Milon | Word VBA | 3 | 07-23-2013 06:21 AM |
Tracking changes: Reviewing Pane: Insertions etc: Is it possible to get specific date | semiotically | Word | 1 | 07-29-2012 03:29 PM |
how delete Word reviewing mode | craig1000 | Word | 0 | 06-25-2010 06:45 AM |