Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-11-2014, 05:48 AM
Squibble Squibble is offline Toggle Button Windows 7 64bit Toggle Button Office 2013
Novice
Toggle Button
 
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
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Toggle Button Macro to toggle outline level Jennifer Murphy Word VBA 3 01-22-2014 11:22 PM
Toggle Button Toggle objects on / off with custom toolbar Milon Word VBA 3 07-23-2013 06:21 AM
Macro to toggle outline level Jennifer Murphy Word VBA 0 07-08-2013 08:20 AM
Toggle Button Toggle Merge Field Code Help Please tonywatsonmail Mail Merge 2 08-11-2011 07:06 AM
Toggle updates dbugosh Office 2 12-16-2010 07:54 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:48 AM.


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