+ Reply to Thread
Results 1 to 5 of 5

Macro should run without switching sheets

  1. #1
    Registered User
    Join Date
    08-08-2013
    Location
    Colorado, USA
    MS-Off Ver
    365
    Posts
    44

    Macro should run without switching sheets

    I have a macro that calls other macros that go to other tabs, look at the data, then hide some rows. I've tried putting the Application.ScreenUpdating = False command at various places in both the main macro and the macros that are called by the main macro, but no matter what I've tried, when the macro runs, the screen flicks over to those other tabs. Any thoughts? The macros are below. The UPDATEALLSHEETS macro is the first one, which calls the other ones.

    Please Login or Register  to view this content.
    Last edited by barnett2000; 08-12-2013 at 03:17 PM. Reason: Added code tags

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

    Re: Macro should run without switching sheets

    You need to add code tags to your code.
    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---

  3. #3
    Registered User
    Join Date
    08-08-2013
    Location
    Colorado, USA
    MS-Off Ver
    365
    Posts
    44

    Re: Macro should run without switching sheets

    I don't know what code tags are. I'll google it, though.

  4. #4
    Registered User
    Join Date
    08-08-2013
    Location
    Colorado, USA
    MS-Off Ver
    365
    Posts
    44

    Re: Macro should run without switching sheets

    Okay, I see what code tags are. I thought you were answering my question at first. I added the code tags to the original post. Still seeking an answer.

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

    Re: Macro should run without switching sheets

    Hi barnett2000, I recall having this issue in the past and a great Excel guru named romperstomper gave me a variation of what I'm giving you. Try the following:
    Please Login or Register  to view this content.
    PS. Sorry for the late reply.

+ 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. Replies: 3
    Last Post: 07-26-2013, 01:39 AM
  2. [SOLVED] Refreshing/Recalculating Sheets based on user input or switching between sheets
    By SonOfOdin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-24-2012, 09:48 PM
  3. Stop sheets switching
    By sigfreid in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-13-2009, 07:35 AM
  4. [SOLVED] Help on Add-in for switching between sheets
    By muster in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-10-2006, 09:39 AM
  5. Switching between sheets in same window...
    By Kojones in forum Excel General
    Replies: 1
    Last Post: 07-16-2005, 06: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