+ Reply to Thread
Results 1 to 3 of 3

Thread: Disabling Printing ability of a sheet unless printing from a macro

  1. #1
    Registered User
    Join Date
    10-18-2010
    Location
    Shelbyville, KY USA
    MS-Off Ver
    Excel 2007
    Posts
    43

    Disabling Printing ability of a sheet unless printing from a macro

    I want to remove the option for an employee to print using the Excel installed printing options (without uninstalling printers). I was hoping there was an option to disable printing in the "protect sheet" drop down but didn't see one. I have already set in place an option for the employees to click Ctrl+Shift+P to run a macro listing sheets in the workbook that are allowed to be printed. Then, once the employee selects the sheet from the check box, the item prints to a PDF. I don't want this disabled. I want this to be the only way to print. I'm feeling like you cant have one without the other. I keep trying to throw you guys a curve ball but I can't stump you! Thanks for any help.

  2. #2
    Forum Guru TMShucks's Avatar
    Join Date
    07-15-2010
    Location
    Manchester, England
    MS-Off Ver
    MSO 2003 & 2007
    Posts
    6,231

    Re: Disabling Printing ability of a sheet unless printing from a macro

    Use the BeforePrint event. Here's an example:

    http://msdn.microsoft.com/en-us/libr...s.80).aspx#Y65


    Regards, TMS

  3. #3
    Forum Guru, retired Admin royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    25,640

    Re: Disabling Printing ability of a sheet unless printing from a macro

    They can print it any way they like if they don't enable macros.
    Hope that helps.

    RoyUK
    --------
    If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need

    For Excel Tips & Solutions, free examples and tutorials why not check out my downloads

    New members please read & follow the Forum Rules

    Remember to mark your questions Solved and rate the answer(s)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0