ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   ShowWindow problem (https://www.excelbanter.com/excel-programming/435470-showwindow-problem.html)

PO

ShowWindow problem
 
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




All times are GMT +1. The time now is 06:13 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com