Thread: [Solved] Toggle Button
View Single Post
 
Old 06-11-2014, 05:48 AM
Squibble Squibble is offline Windows 7 64bit Office 2013
Novice
 
Join Date: Jun 2014
Posts: 1
Squibble is on a distinguished road
Default Toggle Button

Hello

I've added a Bookmark to my document I am trying to create a Show/Hide, I assume A Toggle Button is best suited to this task. I have named the Toggle Button Caption "Show" and added the following code it however won't work can somebody help? It will be gratefully appreciated

Quote:
If .Togglebutton1.Caption = "Show"
ActiveDocument.Bookmarks("PreApproved").Range.Font .Hidden = False
ToggleButton1.Caption = "Hide"
Else
If .ToggleButton1.Caption = "Hide" Then
ActiveDocument.Bookmarks("PreApproved").Range.Font .Hidden = True
I have searched the internet but not having much luck.
Reply With Quote