Share via

Worksheet_activate() does NOTHING in a CHARTSHEET?

Anonymous
2014-04-19T17:33:56+00:00

Worksheet_activate works great in any WORKSHEET, but if you put the same exact code in a CHARTSHEET, then it fails to do anything.

Try this in a WORKSHEET (works great!):

Private Sub Worksheet_Activate()

    MsgBox "Is Active"

End Sub

But add it (or anything similar) to a CHARTSHEET and it does absoltuely nothing...at all.

Bug?

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2014-04-19T17:53:50+00:00

You have to use Chart_Activate(), even if it is on its own sheet (which is not a "worksheet" even though it adds another sheet tab).

I got confused by this:

http://msdn.microsoft.com/en-us/library/office/ff198220%28v=office.15%29.aspx

...and the statement that it "Occurs when a workbook, worksheet, chart sheet, or embedded chart is activated.." (emphasis added)

The above references Worksheet.Activate (DOT and not an UNDERSCORE) and am not sure what the difference is (aside from it is for Office 2010 or 2013, but VBA scripts are the same in 2011 - maybe it's VB vs. VBA or such?), but so be it...

Sorry for the distraction!

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2014-04-20T12:22:56+00:00

    Hi There,

    Thanks for the update.

    Do get back in case if you need further assistance.

    Thank you

    Was this answer helpful?

    0 comments No comments