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

excel print settings - page breaks

Status
Not open for further replies.

oneillst

Programmer
Joined
Feb 19, 2003
Messages
5
Location
AU
Currently I export a table in Access into Excel and format the spreadsheet via VBA code. I can do everthing needed except adjusting the page breaks for printing. Does anyone know how to do this !
 
What do you need to adjust and why? Virtually anything you might want to do in Excel can be done more easily with an Access report...

Anne Troy
Word and Excel Macros
Coming soon: wX
 
Reports are usually produced via Access and emailed to recipients or via intranet applications however this report has been requested in a spreadsheet format. I have been able to adjust all printing settings except for where the pagebreaks occur.
 
All that has to occur is that the pagebreak has to go to the edge of the spreadsheet
 
in that case try

ActiveSheet.PageSetUp.FitToPagesWide = 1



mr s. <;)

 
I have tried this but it still doesn't work. I am working with Office 97. Within Access when I code for excel to go into print preview mode it locks up. At the moment I will just do this manually.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top