Hey guys,
I'm trying to print to pdf the data on a sheet but I do not want the entire active sheet, just the data plus one extra row. With the code below I can catch the data from B1 to the last row but I would like to be able to add one more row to the PDF when printing it. The range changes every month so a set range would not work
I hope that makes sense
Thank you
With ActiveWorkbook
Worksheets("AEL").Range("b1", Range("i11").End(xlDown).End(xlToRight)).ExportAsFixedFormat Type:=xlTypePDF, Filename:="AEL", Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:=True
End With
I'm trying to print to pdf the data on a sheet but I do not want the entire active sheet, just the data plus one extra row. With the code below I can catch the data from B1 to the last row but I would like to be able to add one more row to the PDF when printing it. The range changes every month so a set range would not work
I hope that makes sense
Thank you
With ActiveWorkbook
Worksheets("AEL").Range("b1", Range("i11").End(xlDown).End(xlToRight)).ExportAsFixedFormat Type:=xlTypePDF, Filename:="AEL", Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:=True
End With