Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 860
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
enable/disable multiple buttons Shoney Excel Discussion (Misc queries) 1 January 11th 08 02:41 AM
disable close and shrink buttons Jason L. Excel Programming 2 July 8th 04 06:47 PM
Disable Min Max restore buttons PeteSmith Excel Programming 1 May 11th 04 02:34 PM
how to disable form buttons using macro? shirley Excel Programming 1 February 10th 04 09:59 AM
macro to disable the printpreview menu luis ortiz[_2_] Excel Programming 0 October 18th 03 03:16 PM


All times are GMT +1. The time now is 01:34 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"