+ Reply to Thread
Results 1 to 5 of 5

Multiple seperate Worksheet Events - Order

  1. #1
    Registered User
    Join Date
    08-07-2013
    Location
    Cardiff
    MS-Off Ver
    Office 365
    Posts
    86

    Multiple seperate Worksheet Events - Order

    Hi
    I hope someone can help...

    I have created a dashboard with a few 'report' tabs and many hidden tabs.
    2 of the hidden tabs have Worksheet_PivotTableUpdate Events, that basically do some things on some of the hidden tabs, when Slicers are used on the 'report' tabs by the user. They then finish on the given original report worksheet.

    This works fine in terms of the usability of the report.

    However, when the report is refreshed (eg 'refresh all' - connections), although it works ok, it always Selects the same report tab once refreshed - and its not the one I want it to be.
    Via trial and error I've come to the conclusion that it must be down to the Order in which the Events are run.
    I've tried renaming the actual property of the Sheet name so its in the order of preference, but no luck. I've also tried just renaming the actual report tabs, and the hidden tabs with the Event procedures, and still no luck.

    Is there any way I can force the Events to run in a particular order on Refresh??

    Hope this makes sense!

    Thanks

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Multiple seperate Worksheet Events - Order

    You could create a macro that 'refresh all' - connections and at the end it selects your prefered sheet.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    08-07-2013
    Location
    Cardiff
    MS-Off Ver
    Office 365
    Posts
    86

    Re: Multiple seperate Worksheet Events - Order

    Thanks AlphaFrog

    yes this is kind of the solution I've come up with - I have a separate 'reports updater' which is a sort of switchboard that allows we to update a variety of reports - I've added a line of code to select the relevant sheet.

    I guess I was more just curious as to whether you can specify the order that events are run? Or what is it that determines the order?

    Thanks

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Multiple seperate Worksheet Events - Order

    I'm guessing that they refresh in the order they were created.

  5. #5
    Registered User
    Join Date
    08-07-2013
    Location
    Cardiff
    MS-Off Ver
    Office 365
    Posts
    86

    Re: Multiple seperate Worksheet Events - Order

    After some trial and error I think I've worked it out - and its quite simple!

    Seems as though they are run in the order that the worksheet tabs appear (Left to Right).

+ 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] VBA help - multiple worksheet change events
    By tbear1997 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-08-2016, 03:51 PM
  2. Multiple Worksheet Change Events
    By justinharris in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-09-2011, 06:11 PM
  3. Multiple Worksheet Change Events
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 12-13-2010, 06:14 PM
  4. Worksheet Multiple Change Events
    By max57 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-24-2010, 02:02 AM
  5. Multiple change events in one worksheet?
    By JBW in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-22-2009, 01:33 AM
  6. Macro to move data into a seperate worksheet in order
    By Vikkyann in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-09-2007, 04:13 AM
  7. Multiple Worksheet Change Events???
    By Potoroo in forum Excel General
    Replies: 3
    Last Post: 11-28-2006, 12:59 AM

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