+ Reply to Thread
Results 1 to 5 of 5

Help with ToggleButton VBA code to hide/show specific worksheets

  1. #1
    Registered User
    Join Date
    10-26-2015
    Location
    San Diego
    MS-Off Ver
    ALL
    Posts
    12

    Help with ToggleButton VBA code to hide/show specific worksheets

    Hi Excel Fans,

    I have been trying to find the right syntax to simply show or hide a few sheets in a workbook. I have been pouring over google trying to find the right code but now I am at a lost. If anyone can give me some input that would be great.

    Cheers
    April

    Please Login or Register  to view this content.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2411
    Posts
    26,729

    Re: Help with ToggleButton VBA code to hide/show specific worksheets

    Instead of True and False try xlSheetVisible and xlSheetHidden.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,734

    Re: Help with ToggleButton VBA code to hide/show specific worksheets

    Maybe
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    10-26-2015
    Location
    San Diego
    MS-Off Ver
    ALL
    Posts
    12

    Re: Help with ToggleButton VBA code to hide/show specific worksheets

    Thanks 6StringJazzer and Fluff13

    I kept fiddling more with the code and I found the code below to work for my needs. However, Fluff13, I like how condense your code is, I may experiment with it to see if I can use it to be more efficient. Thanks for all the help.

    Cheers
    April

    Please Login or Register  to view this content.

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,734

    Re: Help with ToggleButton VBA code to hide/show specific worksheets

    Glad we could help & thanks for the feedback.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Help with VBA Unhide Code to show specific Worksheets.
    By Ortz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-05-2016, 05:40 PM
  2. Hide then show specific column
    By littleandyjai in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 02-14-2010, 07:42 PM
  3. make certain worksheets show/hide when others are clicked
    By olyguy360 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-08-2010, 01:44 PM
  4. Using conditions to show/hide worksheets
    By Centara in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-02-2009, 02:24 PM
  5. Macro to show/hide worksheets
    By foamcows in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-01-2007, 02:56 PM
  6. [SOLVED] Hide and show a group of worksheets
    By dreamkeeper in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-28-2006, 04:10 PM
  7. hide rows with macro/togglebutton
    By huntermcg in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 10-14-2005, 03:41 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1