Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 258
Default Varify status before runing code

Is there any way to prevent the code below from runing if the following
formula (on the active worksheet) is True WEEKDAY(C4)=7

If Union(Target, Range("A22:C25")).Address = Range("A22:C25").Address Then
EmployeeList.Show


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Varify status before runing code

Hi Patrick,

At the top of the sub, try inserting:

If Weekday(Range("C4")) = 7 Then Exit Sub

---
Regards,
Norman


"Patrick Simonds" wrote in message
...
Is there any way to prevent the code below from runing if the following
formula (on the active worksheet) is True WEEKDAY(C4)=7

If Union(Target, Range("A22:C25")).Address = Range("A22:C25").Address Then
EmployeeList.Show



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
reuest formula for auto update status & status date PERANISH Excel Worksheet Functions 5 June 2nd 08 04:26 PM
Help with status bar code Les Stout[_2_] Excel Programming 6 October 26th 05 03:24 PM
VB code still runing Chip Pearson Excel Programming 2 May 11th 04 03:47 PM
VB code still runing Bob Phillips[_6_] Excel Programming 0 May 11th 04 03:36 PM
How to display status and keep code running ExcelMan Excel Programming 1 September 20th 03 04:31 AM


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