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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Zoom from Access VBA not working

Status
Not open for further replies.

GeorgeDurkee

Programmer
Feb 22, 2000
47
US
I have an MS Access program that reads data based on months and exports it to Excel. Since I need three months at a time, I run thru the routine three times.

The first time works fine. However, the second time, the same line that worked fine stops working, with a property not supported error.

The line is xlsheet.Zoom = 75. I've tried activewindow.zoom, windows.zoom and windows(1).zoom. The first two generate the property not supported error and the last gives a subscript out of range error.

The Help ystmeonly gives examples using activewindow or for page setup formatting (That works by the way, each time)


Any ideas what I'm doing wrong?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top