sspatriots
Well-known Member
- Joined
- Nov 22, 2011
- Messages
- 574
- Office Version
- 365
- Platform
- Windows
Hi,
I'm trying to prevent the commandbuttons on my userform from printing when I select the userform commandbutton. Below is the code I use, but the buttons still print. When I select the print button I can see it disappear while it's printing and then comes back after the print is sent to the printer, however it still prints with the commandbutton on the form.
I'm trying to prevent the commandbuttons on my userform from printing when I select the userform commandbutton. Below is the code I use, but the buttons still print. When I select the print button I can see it disappear while it's printing and then comes back after the print is sent to the printer, however it still prints with the commandbutton on the form.
VBA Code:
Private Sub cmdPrintJobStatus_Click()
Me.cmdNotifyACCT4.Visible = False
SaveImageActiveWindow
AddTempWS
Me.cmdNotifyACCT4.Visible = True
End Sub