Article ID: 188494
Article Last Modified on 6/17/2005
ActiveWindow.Visible = FalseIn Microsoft Excel 98, you can use the following sample macro to restore the worksheet selection after the chart is deactivated. This macro demonstrates how you can store the selection before activating an embedded chart, and how to restore that selection and deactivate the chart.
Sub ChartSelection()
Dim myobj As Object
' Save the current selection in the object variable "myobj".
Set myobj = Selection
' Activate the embedded chart.
ActiveSheet.ChartObjects(1).Activate
' Restore the selection.
myobj.Select
End Sub
Additional query words: XL98 8.0 8.00 de-activate runtime error
Keywords: kbprogramming kbprb KB188494