Graph lose Zoom setting

mcs51mc

New Member
Joined
Nov 16, 2005
Messages
22
Hi there,
While migrating a macro from Office 2003 to Office 2010 I encounter following problem.
The macro makes 4 new graph sheets and set the Zoom of each of them to 100%.
In Office 2003 that worked fine, each graph was zoomed to 100% and was always showed that way.
In Office 2010 I found out that, when selecting a grah sheet, once the macro was finished, the graph shows 100% zoom only for a very short period of time (less than 1 second).
The graph was then resized to full window size, 122% in my case.

In an attempt to find out the reason I've made the file, you can find here http://www.helpmij.nl/forum/showthread.php/638507-Zoom-grafiek-automatisch-aangepast
Go to the second post and download the "GraphProbleem.xlsm" file.
With the "Graph Ok" button 2 graphs are made that keep the 100% zoom setting.
With the "Graph Niet Ok" button 2 graphs are made that lose the 100% zoom setting.

Only difference..............................
Code:
Application.ScreenUpdating=True
Anyone ever mentioned this problem???

I then tried this in my original macro and indeed it works, but setting Screenupdating to False while executing the macro, even just before each
Code:
ActiveWindow.Zoom = 100
line cause the screen to flicker :( :( :(

Anyone with a better solution??
Thanks!
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

Forum statistics

Threads
1,224,521
Messages
6,179,291
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top