deanl33069
Board Regular
- Joined
- May 2, 2019
- Messages
- 120
HI ALL
i this code to save my sheet as a pdf using info from cell c2
Private Sub CommandButton1_Click()
ActiveSheet.ExportAsFixedFormat _
Type:=xlTypePDF, _
filename:="C:\release" & Range("C2") & ".pdf", _
OpenAfterPublish:=False, _
IncludeDocProperties:=True, _
IgnorePrintAreas:=False, _
Quality:=xlQualityStandard, _
From:=1, To:=2
End Sub
I want to make the user push this button before they can exit the program , also how do i prevent it from over writing an existing doc ?
i this code to save my sheet as a pdf using info from cell c2
Private Sub CommandButton1_Click()
ActiveSheet.ExportAsFixedFormat _
Type:=xlTypePDF, _
filename:="C:\release" & Range("C2") & ".pdf", _
OpenAfterPublish:=False, _
IncludeDocProperties:=True, _
IgnorePrintAreas:=False, _
Quality:=xlQualityStandard, _
From:=1, To:=2
End Sub
I want to make the user push this button before they can exit the program , also how do i prevent it from over writing an existing doc ?