#1   Report Post  
JOHN SMITH
 
Posts: n/a
Default Disable Printing

Hi,

I have a sheet that i need to be save it before it can be printing.

can we disable print? until the sheet has been saved it?

I have a nice button/macro that save, send and print the data on
this sheet but the user can print it anyways.

thnks



  #2   Report Post  
JOHN SMITH
 
Posts: n/a
Default

Private Sub Workbook_BeforePrint(Cancel As Boolean)
MsgBox "Must Save Sheet!!!!"
Cancel = True
End Sub

thnks




"JOHN SMITH" <NEW wrote in message
...
Hi,

I have a sheet that i need to be save it before it can be printing.

can we disable print? until the sheet has been saved it?

I have a nice button/macro that save, send and print the data on
this sheet but the user can print it anyways.

thnks





  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

Something like...

Option Explicit
Private Sub Workbook_BeforePrint(Cancel As Boolean)
If Me.Saved Then
'do nothing
Else
MsgBox "Must Save Workbook!!!!"
Cancel = True
End If
End Sub




JOHN SMITH wrote:

Private Sub Workbook_BeforePrint(Cancel As Boolean)
MsgBox "Must Save Sheet!!!!"
Cancel = True
End Sub

thnks

"JOHN SMITH" <NEW wrote in message
...
Hi,

I have a sheet that i need to be save it before it can be printing.

can we disable print? until the sheet has been saved it?

I have a nice button/macro that save, send and print the data on
this sheet but the user can print it anyways.

thnks




--

Dave Peterson
Reply
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
Active X Checkbox moves after printing temcon Excel Discussion (Misc queries) 2 April 5th 05 04:13 PM
Cell borders printing black instead of grey julie@mwfc Excel Discussion (Misc queries) 1 February 23rd 05 12:19 AM
problem printing to PDF mark kubicki Excel Discussion (Misc queries) 1 January 21st 05 06:19 PM
Illegal operation error while printing EXCEL or WORD Files NathanRS Excel Discussion (Misc queries) 0 January 20th 05 02:23 PM
Enable Double sided printing contiuously when printing multiple s. Lee Excel Discussion (Misc queries) 1 November 27th 04 01:58 AM


All times are GMT +1. The time now is 12:48 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"