disabel print preview

G

Guest

Hi ....
please help me wi this problem........ in Microsoft Office Excel 2003 i need
to disabled the print botton that it appears available when is selectec to
the option of print preview. I am developing shared add-in in visual studio
2005 C#. Please its collaboration with the code to disabled this botton.

Thanks
 
G

Guest

hi
this would be in general
Application.CommandBars("Standard").Controls(7).Enabled = False
where standard is the name of the command bar and controls is the position
on the command bar from the left.
to turn in back on have enabled = true.

Regards
FSt1
 
G

Guest

Thanks FSt1 and Ron..... the options works but in not good mode for us. My
problem is ... the users need to see the print preview form... but into print
preview form i need to disable the print button.

the another print options is in the (menu view) page break preview. The
users need to see this form, but we need to disable the option in the
contextual menu "Page Setup"

Thak you very much for your help... and sorry form my bad english.
 
R

Ron de Bruin

Hi Javier

I not think it is possible to disable this button in the Page Setup dialog.
But i good be wrong
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top