Hey all!
So the below code works great. Though sometimes I need to make a copy of the tab and export, though the button is still referencing the original tab. Is there any way I can make it reference the current tab it's in, rather than setting a fixed sheet?
thanks all!!
Sub Button1_Click()
Sheets("Daily Performance").Range("A1:d80").ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"C:", Quality:= _
xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False, _
OpenAfterPublish:=True
End Sub
So the below code works great. Though sometimes I need to make a copy of the tab and export, though the button is still referencing the original tab. Is there any way I can make it reference the current tab it's in, rather than setting a fixed sheet?
thanks all!!
Sub Button1_Click()
Sheets("Daily Performance").Range("A1:d80").ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"C:", Quality:= _
xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False, _
OpenAfterPublish:=True
End Sub