Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-05-2020, 08:30 AM
Conall Kavanaugh Conall Kavanaugh is offline VBA:  Toggle version of enabling reviewing toolbar via vba? Windows 7 32bit VBA:  Toggle version of enabling reviewing toolbar via vba? Office 97-2003
Novice
VBA:  Toggle version of enabling reviewing toolbar via vba?
 
Join Date: Apr 2020
Posts: 4
Conall Kavanaugh is on a distinguished road
Default 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.)
Reply With Quote
  #2  
Old 04-05-2020, 09:12 AM
Logit Logit is offline VBA:  Toggle version of enabling reviewing toolbar via vba? Windows 10 VBA:  Toggle version of enabling reviewing toolbar via vba? Office 2007
Expert
 
Join Date: Jan 2017
Posts: 529
Logit is a jewel in the roughLogit is a jewel in the roughLogit is a jewel in the rough
Default

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
Reply With Quote
  #3  
Old 04-05-2020, 03:10 PM
macropod's Avatar
macropod macropod is offline VBA:  Toggle version of enabling reviewing toolbar via vba? Windows 7 64bit VBA:  Toggle version of enabling reviewing toolbar via vba? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Or:
Code:
CommandBars("Reviewing").Visible = Not CommandBars("Reviewing").Visible
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #4  
Old 04-07-2020, 08:02 AM
Conall Kavanaugh Conall Kavanaugh is offline VBA:  Toggle version of enabling reviewing toolbar via vba? Windows 7 32bit VBA:  Toggle version of enabling reviewing toolbar via vba? Office 97-2003
Novice
VBA:  Toggle version of enabling reviewing toolbar via vba?
 
Join Date: Apr 2020
Posts: 4
Conall Kavanaugh is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
Or:
Code:
CommandBars("Reviewing").Visible = Not CommandBars("Reviewing").Visible
Thank you so much to you both for responding! Much appreciated.

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!
Reply With Quote
  #5  
Old 04-07-2020, 08:11 AM
Logit Logit is offline VBA:  Toggle version of enabling reviewing toolbar via vba? Windows 10 VBA:  Toggle version of enabling reviewing toolbar via vba? Office 2007
Expert
 
Join Date: Jan 2017
Posts: 529
Logit is a jewel in the roughLogit is a jewel in the roughLogit is a jewel in the rough
Default

Glad you found an answer !
Reply With Quote
  #6  
Old 04-07-2020, 08:23 AM
Conall Kavanaugh Conall Kavanaugh is offline VBA:  Toggle version of enabling reviewing toolbar via vba? Windows 7 32bit VBA:  Toggle version of enabling reviewing toolbar via vba? Office 97-2003
Novice
VBA:  Toggle version of enabling reviewing toolbar via vba?
 
Join Date: Apr 2020
Posts: 4
Conall Kavanaugh is on a distinguished road
Default

Thank you so much, Logit!
Reply With Quote
Reply

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
VBA:  Toggle version of enabling reviewing toolbar via vba? Toggle objects on / off with custom toolbar Milon Word VBA 3 07-23-2013 06:21 AM
VBA:  Toggle version of enabling reviewing toolbar via vba? 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

Other Forums: Access Forums

All times are GMT -7. The time now is 02:15 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft