LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default If active sheet and cell reference

I am currently using the following code in This Workbook to prevent printing
a worksheet until all cells vave been completed:-

Private Sub Workbook_BeforePrint(Cancel As Boolean)
If Range("E3").Text = "COMPLETE" Then

And then it reformats the sheet before printing.

The problem I have is that it also prevents printing any other sheets within
the workbook if this sheet is not in a complete status in cell E3.

I would like to do something along the lines of the following but do not
know the code to make it work:-

If Activesheet="Supplier Request Form" AND Range("E3").Text =
"COMPLETE" Then

Cheers

iansmigger

 
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 row cell reference pskwaak Excel Worksheet Functions 2 March 18th 07 01:38 AM
Active Cell Reference pskwaak Excel Worksheet Functions 8 March 13th 07 02:22 AM
I need to sort an active sheet using the col of the active cell HamFlyer Excel Programming 3 June 6th 06 07:25 PM
Copy from active sheet and paste into new sheet using info from cell in active Ingve Excel Programming 3 January 23rd 06 09:57 PM
Reference the active sheet joe Excel Programming 9 October 22nd 04 11:01 PM


All times are GMT +1. The time now is 03:35 AM.

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"