Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This should do what you want:
Private Sub Workbook_BeforePrint(Cancel As Boolean) dim sPassword as String sPassword = InputBox("Enter the password") if Not sPassword = "WhatEverThePasswordIs" Then Cancel = True MsgBox "Information contained in this workbook cannot be printed" Else ActiveSheet.PrintOut End If End Sub Regards, GS |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
stumped | Excel Worksheet Functions | |||
Stumped bad, need help please! | Excel Worksheet Functions | |||
Stumped | Excel Discussion (Misc queries) | |||
Stumped | Excel Programming | |||
Stumped | Excel Programming |