+ Reply to Thread
Results 1 to 7 of 7

Macros with hidden sheets

Hybrid View

  1. #1
    Registered User
    Join Date
    06-28-2005
    Posts
    1

    Macros with hidden sheets

    Hi there,

    I have 2 doubts by excel macros. I have created a macro which uses information from other sheets in the same file. When I hide those sheets (which I need to) the macro doesn't work... Is it possible to keep it running with hidden sheets?

    The other doubt is also link with the same problem. When I have a macro that uses information from other sheets in the same file, while it is running it quickly jumps to the other sheets. Can I run the macro but remain in the same sheet where the macro is, without any "jumps" from sheet to sheet?

    Many Thanks

    Regards to you all

    Perini

  2. #2
    Forum Contributor
    Join Date
    11-09-2004
    Posts
    451
    Can I run the macro but remain in the same sheet where the macro is, without any "jumps" from sheet to sheet?
    Yes you can.


    When I hide those sheets (which I need to) the macro doesn't work... Is it possible to keep it running with hidden sheets?
    Yes it is possible, but depends on what macro does

  3. #3
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    one solution to both "doubts"... use:

    Application.ScreenUpdating = False

    'here you can unhide the sheets needed, run your code, then rehide the sheets

    Application.ScreenUpdating = True

    HTH

    Bruce

    p.s. Quick English lesson, "Doubt" means "To regard as unlikely". I 'doubt' that is what you meant in your post... most likely you meant "I have 2 problems with excel macros..."

    (I respect you for your grasp of my confusing language... and it is the only one I speak, so you have that better than me).
    b
    Bruce
    The older I get, the better I used to be.
    USA

  4. #4
    Registered User
    Join Date
    02-07-2011
    Location
    St. Maarten
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Macros with hidden sheets!

    Hello Guys

    I would like to get some help with this project, to create a macro to select sheet2 if sheet1 is hidden or select sheet1 if sheet2 is hidden
    thank you in advance guys for your help

    Gptechsxm

  5. #5
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Macros with hidden sheets

    Hi Gptechsxm, please do not post your questions in someone else's thread unless they have something to do with the solutions to that thread. If you would like some help, start your own thread and someone will help you.

    Cheers
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  6. #6
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Macros with hidden sheets

    What is the code the OP is having trouble with.
    If hiding sheets interferes with the code, it sounds like it might be selecting
    Code that uses Select should be avoided
    1)hidden sheets can foul it up
    2)it slows things down.

    If you post your code, we could remove the Selection part and it will work when the sheets are hidden.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  7. #7
    Registered User
    Join Date
    02-07-2011
    Location
    St. Maarten
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Macros with hidden sheets

    sorry guys

    this was my fist thread

    G
    gptechsxm

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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