Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 181
Default disable print

Mickey,

I use your macros in one of my programs but it disable the print options
for all my excel files open... can I have it apply only for the excel file I
am executing the macro?

"מיכאל (מיקי) אבידן" wrote:

You should try:
====================
Sub Disable_Print()
Application.OnKey ("^p"), ""
CommandBars("Worksheet Menu
Bar").Controls("File").Controls("Print...").Enable d = False
CommandBars("Standard").Controls(6).Enabled = False
End Sub

Sub Enable_Print()
Application.OnKey ("^p")
CommandBars("Worksheet Menu
Bar").Controls("File").Controls("Print...").Enable d = True
CommandBars("Standard").Controls(6).Enabled = True
End Sub
============
Micky


"Alberto Ast" wrote:

I would like to force the users of my program to use my print command... and
not be able to use the standard excel options to print...

can I disable those buttons/options like

File/print
Print icon
etc....

 
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
Disable # bmelt Excel Discussion (Misc queries) 8 February 18th 09 04:39 PM
Disable Excel Print Scott R Excel Worksheet Functions 6 January 21st 08 12:59 AM
Disable print option of a worksheet/workbook Nelly07 Excel Discussion (Misc queries) 0 October 23rd 07 10:19 PM
disable printer so worksheets CAN'T print accidentally??? Deb-in-Wisconsin Excel Discussion (Misc queries) 2 August 19th 06 07:13 PM
disable print Walter P Excel Discussion (Misc queries) 6 July 20th 06 08:12 PM


All times are GMT +1. The time now is 07:01 PM.

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

About Us

"It's about Microsoft Excel"