+ Reply to Thread
Results 1 to 2 of 2

Hello everyone...I have a macros in worksheet not allowing my button macros fully function

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

    Hello everyone...I have a macros in worksheet not allowing my button macros fully function

    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 Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Hello everyone...I have a macros in worksheet not allowing my button macros fully func

    The Err 9 seems to be saying that the sheet wasn't found in the active workbook. Try adding the name of the workbook containing that sheet:
    Workbooks("book_name").Worksheets("Contra_submittal").Visible = xlVeryHidden
    Ben Van Johnson

+ 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. [SOLVED] Macro running other macros does not fully execute
    By gle in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-08-2013, 08:13 AM
  2. [SOLVED] Rounding the Decimal to 3 Fully (Macros or Excel)
    By plasma33 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-21-2012, 01:22 PM
  3. Share with multiple users allowing macros
    By 19Rowy85 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-09-2008, 06:14 PM
  4. Allowing for variable lines in macros
    By smurrock in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-26-2006, 11:55 AM
  5. [SOLVED] How can I lock worksheets while still allowing macros to operate?
    By enginguven in forum Excel General
    Replies: 2
    Last Post: 01-09-2006, 06:10 PM

Tags for this Thread

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