Ratigan1970
New Member
- Joined
- Jan 22, 2024
- Messages
- 16
- Office Version
- 2010
- Platform
- Windows
hi again all in vba land
im not sure if its more vba needed to change the layout of the pdf
when i us this macro
there are pics below and there is also the link too the macro to select the ranges to save
link to post
Im trying to get all the colums on one pdf sheet
can anyone help me please
im not sure if its more vba needed to change the layout of the pdf
when i us this macro
VBA Code:
Sub SaveSelectionAsPDF()
Dim saveLocation As String
Dim myCells As Range
Set myCells = Selection
saveLocation = "D:\PAY.pdf"
myCells.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"D:\PAY.pdf", Quality:= _
xlQualityStandard, IncludeDocProperties:=False, IgnorePrintAreas:=True, _
OpenAfterPublish:=True
End Sub
link to post
Im trying to get all the colums on one pdf sheet
can anyone help me please