I am using the following code:
Option Explicit
Sub Export_STR_PDF()
Sheets("Shore Tank Report").Select
Dim name
name = Cells(1, 1)
With ActiveSheet.PageSetup
.Zoom = False
.FitToPagesWide = 1
.FitToPagesTall = 1
.CenterHorizontally = True
End With
Range("B1:O111").ExportAsFixedFormat Type:=xlTypePDF, _
Filename:=Application.GetSaveAsFilename("C:\users\alrh\desktop\" & name), Quality:=xlQualityStandard, _
IncludeDocProperties:=True, IgnorePrintAreas:=False, _
OpenAfterPublish:=True
End Sub
to successfully export a sheet to PDF. However, it apperas to be adding one period to save as ''all files'' and then another to save as a pdf. I know this is a small issue, but it's irritating and I have programs that rely on uniform filenames to run.
Any help is appreciated. Thanks!
Bookmarks