Hello,
I wrote the code to save my spreadsheet as a PDF file. The Macro is working correctly, but I've been asked to make it dynamic and save it to the desktop regardless of user. Any suggestions?
Sub PrintTRENDPDF()
Worksheets("TREND").Activate
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"C:\Users\nperraki\OneDrive - Myriad Genetics\Desktop\TREND.pdf", _
Quality:=xlQualityStandard, IncludeDocProperties:=True, _
IgnorePrintAreas:=False, OpenAfterPublish:=False
Worksheets("MACRO TILES").Activate
Worksheets("MACRO TILES").Cells(1, 1).Select
End Sub
I wrote the code to save my spreadsheet as a PDF file. The Macro is working correctly, but I've been asked to make it dynamic and save it to the desktop regardless of user. Any suggestions?
Sub PrintTRENDPDF()
Worksheets("TREND").Activate
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"C:\Users\nperraki\OneDrive - Myriad Genetics\Desktop\TREND.pdf", _
Quality:=xlQualityStandard, IncludeDocProperties:=True, _
IgnorePrintAreas:=False, OpenAfterPublish:=False
Worksheets("MACRO TILES").Activate
Worksheets("MACRO TILES").Cells(1, 1).Select
End Sub