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

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

jolivanes

Well-known Member
Joined
Sep 5, 2004
Messages
2,309
Office Version
  1. 2013
  2. 2007
Platform
  1. Windows
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

jolivanes

Well-known Member
Joined
Sep 5, 2004
Messages
2,309
Office Version
  1. 2013
  2. 2007
Platform
  1. Windows
Do you want to print (save) individual pages from a large selection to PDF instead of all in one?
 
Upvote 0

jamtay317

Well-known Member
Joined
Mar 6, 2013
Messages
769
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

jolivanes

Well-known Member
Joined
Sep 5, 2004
Messages
2,309
Office Version
  1. 2013
  2. 2007
Platform
  1. Windows
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,195,664
Messages
6,011,017
Members
441,579
Latest member
satishrazdhan

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
Top