Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Deny print access to specific files 1

Status
Not open for further replies.

zarkon4

MIS
Dec 16, 2003
641
0
0
US
How would I deny a user the ability to print certain files from a network share. These users need to view the files but cannot print them.
 
You would need to use some form of digital rights management I would think on the files in question because you only set read, write, create, modify, etc on files through windows or set who has access to certain printers.
 
by creating a macro in the worksheet and adding

Code:
Private Sub workbook_BeforePrint(Cancel As Boolean)

    Cancel = True

    MsgBox "Sorry, you cannot Print from this workbook", vbInformation

End Sub
this is not heavy protection but will work for a majority of end users. also the workbook_Befor???????? works for many menu functions like workbook_BeforSaveAs and so on and is a functional event hook.

Steve Bowman
Independent Technology, Inc.
CA, USA
 
The directories have other types of files, .dwg, .txt, .jpg, .tif, .pdf.

Thanks anyway.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top