I have a commandbutton on the Excel file that allows the user to automate the "Print PDF" feature with a click. The issue being, at the moment I can only save the file to the specified location within the code. I want to let the user choose their save directory similar to the actual saving feature.
Here is the code I have so far:
Private Sub PrintPDF_Button_Click()
Dim mySheets As Variant, sh
mySheets = Array("COVER", "SCOPE", "SUMMARY", "Updated Hours EST", "RATES")
Sheets(mySheets).Select
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:="C:\Users\sravi\test" & _
".pdf", Quality:=xlQualityStandard, IncludeDocProperties:=True, _
IgnorePrintAreas:=False, openafterpublish:=True
End Sub