+ Reply to Thread
Results 1 to 2 of 2

Hi everyone! I have a macros to hide and unhide sheets based on a cell value...

  1. #1
    Registered User
    Join Date
    10-02-2013
    Location
    New Mexico, USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Hi everyone! I have a macros to hide and unhide sheets based on a cell value...

    I have a macros to hide and unhide my "Contra_submittal" sheet based on a cell value. On my "Checklist" sheet, I created a spread sheet using checkbox applications. I also applied a macros button to my "Checklist" sheet. By clicking on the macros button it's suppose to opens 2 files to retrieve formulas, pictures, and results depending on the check box selection. It gives me a Run-time error '9' Subscript out of range message. The macros button does not fully function. It only opens 1 of the 2 files. I click on Debug to find the error. The formula below is my hide and unhide macros, which I don't think has anything to do with my button macros. Worksheets("Contra_submittal").Visible = xlSheetVisible is highlighted. When I remove the macros shown below, my button macros works very well, but I really need the formula below to hide a sheet if it's not needed. It only happens to buttons with a macros that opens files. Gratitude to anyone who can assist me. I hope my explanation is clear. The macros below is under my "Contra_submittal" sheet.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Hi everyone! I have a macros to hide and unhide sheets based on a cell value...

    Welcome to the forum.
    Since you posted this thread to the proper forum this will remain as just an introduction no discussionswill be maid here.

    Thank you for joining.

    Regards,
    Vladimir
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

+ 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. Hide/Unhide sheets based on combo box selection
    By prabs_message in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-21-2013, 01:43 AM
  2. Macro that will hide/unhide sheets based on tab color.
    By Rixonomic in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-11-2012, 02:07 PM
  3. Unhide or hide sheets based on drop down list value - need help combining these two macros
    By kstrick99999 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-02-2012, 06:07 PM
  4. Hide and Unhide sheets based on Date [better code]
    By Deryl in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-30-2012, 09:22 AM
  5. Need Help with Macro to Hide/Unhide certain sheets based on number value in a cell
    By PizzaEngineer in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-09-2012, 02:23 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