PAGEBREAK-MACRO

J

Jay Dean

I am looking for a macro that will set any Excel sheet's page (no
mattet how many pages the page-break view shows) to just one page.
I would appreciate any assistance. Thanks.

Jay Dean.
 
V

Vasant Nanavati

Hi Jay:

With ActiveSheet.PageSetup
.FitToPagesWide = 1
.FitToPagesTall = 1
End With

Regards,

Vasant.
 
T

Tom Ogilvy

You might want to add:

With ActiveSheet.PageSetup
.Zoom = False
.FitToPagesWide = 1
.FitToPagesTall = 1
End With
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top