+ Reply to Thread
Results 1 to 4 of 4

auto refresh on pivot table

Hybrid View

jimmisavage auto refresh on pivot table 12-15-2006, 07:48 AM
Carim Hi, The problem with the... 12-15-2006, 07:54 AM
jimmisavage ok Carim, thanks anyway 12-15-2006, 07:55 AM
Carim Hi again, To trap... 12-15-2006, 08:08 AM
  1. #1
    Forum Contributor
    Join Date
    10-30-2006
    MS-Off Ver
    O365
    Posts
    311

    auto refresh on pivot table

    Hi me again,

    i have an auto refresh code for a pivot table, but it only works if i use the tabs at the bottom, and not when i hyperlink to it. is there a way it will refresh when hyperlinked to the sheet?

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    The problem with the hyperlink not firing the worksheet_activate event was fixed in XL2002 but does not work in XL2000 ...

    HTH
    Carim

  3. #3
    Forum Contributor
    Join Date
    10-30-2006
    MS-Off Ver
    O365
    Posts
    311
    ok Carim, thanks anyway

  4. #4
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi again,

    To trap hyperlinking which does not fire worksheet_activate event, JimCone has found a solution ...

    In your workbook open event place something like this,
    for each desired sheet ...
    Sub FixItUp() 
     Me.Worksheets("Sheet3").OnSheetActivate = "DoThis" 
     Me.Worksheets("Sheet3").OnSheetDeactivate = "DoThat" 
    End Sub
    In your workbook close event use code like this for every
    sheet listed above ...
    Sub UndoFix() 
     Me.Worksheets("Sheet3").OnSheetActivate = "" 
     Me.Worksheets("Sheet3").OnSheetDeactivate = "" 
    End Sub
    DoThis and DoThat are the subs that run when the applicable
    sheet is activated/deactivated. Place those subs in a general module.
    Any of the sub names can be names you choose ...

    HTH
    Carim

+ 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