Hi,
I have the following code that saves an excel worksheet as a PDF and give the user the ability to change a pre-defined filename using a cell value.
Can I have the code so it automatically changes a / (fwd slash) in the pre-defined filename to a , (comma)?
Thanks
I have the following code that saves an excel worksheet as a PDF and give the user the ability to change a pre-defined filename using a cell value.
Can I have the code so it automatically changes a / (fwd slash) in the pre-defined filename to a , (comma)?
Thanks
Code:
Dim Opendialog As Variant
Opendialog = Application.GetSaveAsFilename(Sheet18.[B1].Value, "PDF (*.pdf), *.pdf")
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:=Opendialog _
, Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
:=False, OpenAfterPublish:=False