Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Print macro not working

Avatar of Gary Cooper
Gary CooperFlag for Canada asked on
Printers and ScannersVBA
10 Comments1 Solution59 ViewsLast Modified:
I have 3 separate macro buttons for printing 3 different ranges. When it prints, it doesn't "fit to 1 page", but prints larger type over 3 pages. If there is a better way of doing this, I would like to know.

ExpertsExchange_PRINTING.xlsm

The code I have used for the first page is as follows:

Sub Sheet_SUMMARY_1to69()
 
  Application.ScreenUpdating = False
  
   Sheet1.Select
   
  With ActiveSheet.PageSetup
    .BottomMargin = Application.InchesToPoints(1#)
    .FitToPagesWide = 1
    .FitToPagesTall = 1
    .RightFooter = "&""Arial Black,Regular""Pg. 1"
  End With
    
    Range("A1:R69").PrintOut
    
 Application.ScreenUpdating = True
 
End Sub