+ Reply to Thread
Results 1 to 3 of 3

Error message when selecting hidden files

  1. #1
    Registered User
    Join Date
    04-01-2014
    Location
    Kansas City, US
    MS-Off Ver
    Excel 2007
    Posts
    10

    Error message when selecting hidden files

    Very new to excel VBA
    I have a sheet labeled TOC with buttons on it linking to other sheets in the workbook. I have hidden certain sheets until they are needed but just realized that when clicking on a button on the TOC it brings up a error. I would like to have to separate options
    1. when selected it brings up a msgbox asking if i would like to unhide the hidden cells one at a time.
    2. when selected it brings up a msgbox just saying this sheet is hidden.

    My code to select the sheets with the button is:
    Please Login or Register  to view this content.
    My code to select the sheets to be unhidden one at a time is:
    Please Login or Register  to view this content.
    I don't have a code to simply say the sheet is hidden yet.

    Any help would be much appreciated.
    Last edited by alexshaw76; 04-01-2014 at 03:32 PM. Reason: Solved

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Error message when selecting hidden files

    You can incorporate the first code you have, if you would like:

    Please Login or Register  to view this content.
    You can then unhide it if you wanted to. You didn't mention that in your post so I didn't include code (you did say something about hidden cells but worksheets and cells are different things).
    Last edited by stnkynts; 04-01-2014 at 03:04 PM.

  3. #3
    Registered User
    Join Date
    04-01-2014
    Location
    Kansas City, US
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Error message when selecting hidden files

    thanks STNKYNTS works great!

+ 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. Excel 2007 : Compile error in hidden module message
    By jimbir in forum Excel General
    Replies: 2
    Last Post: 06-19-2010, 11:46 PM
  2. error message when saving files
    By helen_spencer9 in forum Excel General
    Replies: 1
    Last Post: 11-07-2008, 11:17 AM
  3. vb code to return files giving too many files error message
    By camcrazy08 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-27-2007, 04:53 PM
  4. Error Message on some files
    By CVGRJordan in forum Excel General
    Replies: 2
    Last Post: 06-28-2005, 02:10 PM
  5. Replies: 4
    Last Post: 01-21-2005, 08:06 PM

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