ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Disable commad bar options (https://www.excelbanter.com/excel-programming/276465-disable-commad-bar-options.html)

nath

Disable commad bar options
 
Hi

I have created a complex report on Excel and have created
a print button that sets the print area of the sheet to
only include relevant (occupied) cells. With this in mind
i would like the users to use my print button rather than
having the print button on the command bar as there would
be 30+pages with the majority being blank.

Is it possible to disable the command bar print button?

Or if i remove it and then save it using right click, will
it still be removed on other users?

TIA

Nath.

nath

Disable commad bar options
 

-----Original Message-----
Hi

I have created a complex report on Excel and have created
a print button that sets the print area of the sheet to
only include relevant (occupied) cells. With this in

mind
i would like the users to use my print button rather than
having the print button on the command bar as there would
be 30+pages with the majority being blank.

Is it possible to disable the command bar print button?

Or if i remove it and then save it using right click,

will
it still be removed on other users?

TIA

Nath.
.
done it now thanks.


I have used application.CommandBars(3).Controls(4).Enabled
= False

nath

Disable commad bar options
 

-----Original Message-----
Hi

I have created a complex report on Excel and have created
a print button that sets the print area of the sheet to
only include relevant (occupied) cells. With this in

mind
i would like the users to use my print button rather than
having the print button on the command bar as there would
be 30+pages with the majority being blank.

Is it possible to disable the command bar print button?

Or if i remove it and then save it using right click,

will
it still be removed on other users?

TIA

Nath.
.
done it now thanks.


I have used application.CommandBars(3).Controls(4).Enabled
= False

Tom Ogilvy

Disable commad bar options
 
Did you disable Ctrl+P, how about the print buttons in the print preview -
there are a lot of places one can print without using your button.

As I recommended, you might want to use the BeforePrint event.

--
Regards,
Tom Ogilvy

"nath" <n@n wrote in message ...

-----Original Message-----
Hi

I have created a complex report on Excel and have created
a print button that sets the print area of the sheet to
only include relevant (occupied) cells. With this in

mind
i would like the users to use my print button rather than
having the print button on the command bar as there would
be 30+pages with the majority being blank.

Is it possible to disable the command bar print button?

Or if i remove it and then save it using right click,

will
it still be removed on other users?

TIA

Nath.
.
done it now thanks.


I have used application.CommandBars(3).Controls(4).Enabled
= False





All times are GMT +1. The time now is 06:52 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com