+ Reply to Thread
Results 1 to 2 of 2

Varify status before runing code

  1. #1
    Patrick Simonds
    Guest

    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. #2
    Norman Jones
    Guest

    Re: 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" <[email protected]> wrote in message
    news:[email protected]...
    > 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1