ShowWindow problem

P

PO

Hi

I use an embedded chart in a worksheet to display some revenue data. Below
the chart is a large table with data which the user can filter. After the
filter is set I want the user to be able to temporarily see the chart in a
full screen mode. I use the following code:

Sub DisplayChartInLargeWindow()
ActiveSheet.ChartObjects(1).Activate

With ActiveChart
.ChartArea.Select
.ShowWindow = True
End With

ActiveWindow.Caption = "Revenue"
End Sub

The only problem is that the window which dispays the chart has the exact
same size as the embedded chart. Any attempts to resize the window using
code have failed.

For instance "ActiveWindow.WindowState = xlMaximized" will have no effect on
the window displaying the chart.

What am I doing wrong?
Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top