Closed Thread
Results 1 to 20 of 20

Worksheet_Activate Not Firing

Hybrid View

  1. #1
    Registered User
    Join Date
    07-31-2009
    Location
    Gilbert, Az
    MS-Off Ver
    Excel 2007
    Posts
    30

    re: Worksheet_Activate Not Firing

    2 sheets are pivot tables and 2 sheets contain pivot charts. The other sheets that work fine are of the same format.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    re: Worksheet_Activate Not Firing

    So... did you test the suggested code ?

  3. #3
    Forum Contributor
    Join Date
    04-18-2009
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2016
    Posts
    269

    re: Worksheet_Activate Not Firing

    Can you post a sample workbook? Make sure you remove any sensitive data from it.

    Click GO ADVANCED and use the paperclip icon to post up your workbook.

    Regards,
    Karan

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    re: Worksheet_Activate Not Firing

    Karan, I would pretty much stake my life on the fact that changing sh variable from worksheet to Object will resolve the issue.

    Neither the Pivot Table nor the Pivot Chart "sheets" will appear within the Worksheets Collection, the former by virtue of being linked to the Chart Object
    If you wish to test, were the PT Chart removed leaving only the PT the existing code would work without issue given all "sheets" would then be "worksheets".
    (if the PT Chart were embedded as an object within the PT sheet I suspect it would work also)

    In these scenarios the basic options are to:

    a) iterate Worskheets then ChartObjects

    or

    b) iterate by Object

  5. #5
    Forum Contributor
    Join Date
    04-18-2009
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2016
    Posts
    269

    re: Worksheet_Activate Not Firing

    Thanks for the information DonkeyOte. But, was that message for me?

    Regards,
    Karan

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    re: Worksheet_Activate Not Firing

    Yep... ie I'm not really sure we need a sample file - I would like OP to test suggestion first off - as yet no response to that.

Closed 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