trying to save Print Preview as PDF

jamtay317

Well-known Member
Joined
Mar 6, 2013
Messages
769
I'm trying to save Print Preview as PDF, so that I can email billing invoices to people. I'm not sure how to do this is there anyway to help with this? I'm using excel 2010 .
all help is appreciated

thanks James
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
How about printing it to PDF?
I don't have 2010 but in 2007 you can save it as PDF.
Office Button - Save As and select PDF
 
Last edited:
Upvote 0
Do you want to print (save) individual pages from a large selection to PDF instead of all in one?
 
Upvote 0
yes, but I would like to just add a button that saves the print preview (the separate pages) as .pdf so I still can print them out on the printer too.
 
Upvote 0
James
Try this on a copy of your workbook.
Change the Folder and Name to be saved.

Code:
Sub Print_Individual_Pages_James()
    Dim iHpBreaks As Integer, iVBreaks As Integer
    Dim iTotPages As Integer, a As Long, j As Long
    iHpBreaks = ActiveSheet.HPageBreaks.Count + 1
    iVBreaks = ActiveSheet.VPageBreaks.Count + 1
    iTotPages = iHpBreaks * iVBreaks
    j = 1
    For a = 1 To iTotPages
        ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
            "C:\Temp PDFs\This is Sheet" & j & ".pdf", _
                Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
                    :=False, From:=a, To:=a, OpenAfterPublish:=False
        j = j + 1
    Next
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,406
Messages
6,119,330
Members
448,888
Latest member
Arle8907

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top