I appreciate you cleaning up my coding, it looks much better. As for coding behind the Userform, I have thought of this and would do this but it doesn't seem to workout for me and the reason being because i am using the GetSaveAsFilename application property and therefore when I use the Save action it no longer pulls the filename from the save as dialog box nor does it use the initial name generated from the Sub Filesaveas if the user chooses not to change the filename. How can I get away from this problem? and here is the code I would like to perform with the CommandButton1_click action:
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:=fileSaveName, _
Quality:=xlQualityStandard, includedocproperties:=True, IgnorePrintAreas:=False, _
openafterpublish:=True
Bookmarks