Send mail (as attachment) button issue

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to disable the send e-mail (as attachment) button in one of the
custom toobars. However, I do not know the specific name or line of code. The
below example works for the print button in a report:

CommandBars("Print Preview").Controls("Print").Visible = False

Now, I need to do this for the custom toolbar (only for certain users) on a
form.

Any help would be GREATLY appreciated.
Thanks in advance
 
Okay....well, I found it.
If anybody wants to know in the future..
The specific code goes like this.

CommandBars("Menu Bar").Controls("mail recipient (as
attachment)...").Visible = False

It's the same for the others too. eg:
New...
Open...
etc.
 
Back
Top