Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Printpreview problem - disable various buttons
Using Excel 2000 vba I would like to
1. disable the <PRINT button and other buttons programmatically. 2. tab from button to button. 3. be able to view the PrintPreview picture programmatically. Your help will be appreciated. Raymond |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Printpreview problem - disable various buttons
Hi Raymond,
Raymond wrote: Using Excel 2000 vba I would like to 1. disable the <PRINT button and other buttons programmatically. You can disable the print button with this: Application.CommandBars.FindControl(ID:=2521).Enab led = False I found the ID by doing this in the immediate window: ?application.CommandBars("Standard").Controls(6).c aption Print (<my printer) ?application.CommandBars("Standard").Controls(6).i d 2521 2. tab from button to button. Not sure what you mean by this. 3. be able to view the PrintPreview picture programmatically. ActiveSheet.PrintPreview False -- Regards, Jake Marx MS MVP - Excel www.longhead.com [please keep replies in the newsgroup - email address unmonitored] |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
enable/disable multiple buttons | Excel Discussion (Misc queries) | |||
disable close and shrink buttons | Excel Programming | |||
Disable Min Max restore buttons | Excel Programming | |||
how to disable form buttons using macro? | Excel Programming | |||
macro to disable the printpreview menu | Excel Programming |