I understand that I can disable a button on a menubar with the following code:
Or to hide
However I want to manipulate the Print button and see what is being printed a form or a report. Where would I write the code for the print button and say print only reports not forms?
Thanks for your help in advance!
Code:
CommandBars("MenuName").Controls("Print").Enabled = False
Or to hide
Code:
CommandBars("MenuName").Controls("Print").Visible = False
However I want to manipulate the Print button and see what is being printed a form or a report. Where would I write the code for the print button and say print only reports not forms?
Thanks for your help in advance!