+ Reply to Thread
Results 1 to 3 of 3

Macro with hidden worksheet

  1. #1
    Forum Contributor
    Join Date
    02-21-2007
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    389

    Macro with hidden worksheet

    Hello,

    when I run that macro I have an error when I hide the worksheet "Consult2". Would you know anyway to have the macro running when the "Consult2" worksheet is hidden?

    HTML Code: 
    Many thanks,
    Graig

  2. #2
    Valued Forum Contributor
    Join Date
    10-26-2008
    Location
    Birmingham, UK
    MS-Off Ver
    All versions up to 2010
    Posts
    1,025

    Re: Macro with hidden worksheet

    Hi Graig
    A macro will not run on a hidden worksheet. However you can use this code to get round this problem.
    Please Login or Register  to view this content.
    This code will unhide your worksheet but NOT update the view, then run your code and hide your worksheet again. Change the "ThisSheet" entries in the code to the name of your worksheet.
    Hope this helps.
    Good luck.
    Tony

  3. #3
    Forum Contributor
    Join Date
    05-10-2012
    Location
    Paris, France
    MS-Off Ver
    2016/365
    Posts
    123

    Re: Macro with hidden worksheet

    Hi graiggoriz

    Don't use "Select" with hidden worksheet

    Try this code
    Please Login or Register  to view this content.

+ 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] Button that has a macro that will open a hidden worksheet
    By jewels3059 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-03-2013, 03:47 PM
  2. Macro to go to a hidden worksheet. Good/Bad idea?
    By Barking_Mad in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-25-2010, 02:07 PM
  3. Replies: 3
    Last Post: 08-08-2006, 08:10 AM
  4. macro to hidden worksheet
    By murph306 in forum Excel General
    Replies: 8
    Last Post: 06-01-2006, 09:35 AM
  5. Visual Basic Macro to print hidden worksheet
    By Noel S Pamfree in forum Excel General
    Replies: 4
    Last Post: 10-12-2005, 09:05 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