+ Reply to Thread
Results 1 to 5 of 5

Disable printing bar one sheet

  1. #1
    Registered User
    Join Date
    01-04-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    3

    Disable printing bar one sheet

    Hi,

    Can anyone advise a way of restricting an excel file using VBA (or some other method) from printing all bar one specific sheet?

    As others have relatively sensitive information on I wouldnt want the users to accidently print the wrong sheets.


    Thanks,

    Adam
    Last edited by Ad83; 02-29-2012 at 11:33 AM.

  2. #2
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Disable printing bar one sheet

    The following would need to be worked to your criteria regarding which sheet should be printed. Place the following in ThisWorkbook module
    Please Login or Register  to view this content.
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Disable printing bar one sheet

    This should be enough
    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Disable printing bar one sheet

    Roy,

    Would you not need to account for multiple worksheets being grouped and printed?

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Disable printing bar one sheet

    I always use code similar to what I posted. I think it will stop printing of grouped sheets.

    It is pointless whatever, because if macros aren't enable then the users can print anything.

+ 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.6.0 RC 1