Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Zooming an Excel object

Status
Not open for further replies.

Pipe2Path

Programmer
Aug 28, 2001
60
I am trying to zoom an embedded Excel spreadsheet. The following is my code :

xlsApp.activeWindow.zoom=75

This seems to be a read-only property. Is there any way I can zoom a spreadsheet when it is embedded in an OLE container control in VB?

Thanks.
 
Not real sure if this will work, but you may want to try zooming to a selection rather than a percentage. I did this a long time ago and see that I set the Zoom value to True rather than a numerical value.
Code:
rng = "A287:I310"

Range(rng).Select

ActiveWindow.Zoom = True
 
Thanks dsi. That didn't work either. Excel seems to reject the zoom property when run from the outside of the Excel environment. I think I may have to go to the API to look for something... Any other ideas?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top