I have dynamically updating excel file, I need to save it as pdf. Locally on my PC it’s saving as I want, but on Robot’s computer it saving one column as one page, whether I need to save entire sheet as a page. I’ve tried to use save as pdf activity and VBA macro. Both methods returning same result. Here’s my VBA code:
Sub SaveActiveSheetsAsPDF(Path As String)
'Create and assign variables
Dim saveLocation As String
saveLocation = Path
With ActiveSheet.PageSetup
.FitToPagesWide = 1
.FitToPagesTall = 1
End With
'Save Active Sheet(s) as PDF
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:=saveLocation
End Sub