+ Reply to Thread
Results 1 to 4 of 4

If Weekday() = vbSaturday Or Weekday() = vbSunday Then

  1. #1
    Forum Contributor
    Join Date
    03-29-2012
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    818

    If Weekday() = vbSaturday Or Weekday() = vbSunday Then

    Good day,
    I am looking for help on proceeding to the following:

    I have codes that works as ActiveCell.Row therefore if my ActiveCell.Row "I" is double I will have a calendar (Monthview) generate and the user will select a date. If the user selects a weekend date then my calendar will have a msgbox saying they cannot choose a Weekend date:

    Please Login or Register  to view this content.
    In my sheet, when everything is done properly, I have the following code that will be added:

    Please Login or Register  to view this content.
    I need that If my ActiveCell.row, "K" that when a user selects a date in I and that K's is on the weekend, then to populate a msgbox to say the same thing.

    Problem is the following: At the same time that my I is triggered, my Column J and K will have the following:

    Please Login or Register  to view this content.
    Is there a way to make it look, after the fact, to generate an error message if the date, in my Activecell.row "K", is on a weekend and if so Generate the error msg then select my ActiveCell.Row "J"?

    I don't need a loop, just an error message then select my actvrow J.

  2. #2
    Forum Contributor
    Join Date
    03-29-2012
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    818

    Re: If Weekday() = vbSaturday Or Weekday() = vbSunday Then

    I have modify the following code to have a value in Column K:

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    03-29-2012
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    818

    Re: If Weekday() = vbSaturday Or Weekday() = vbSunday Then

    Bump ...


    ...

  4. #4
    Forum Contributor
    Join Date
    03-29-2012
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    818

    Re: If Weekday() = vbSaturday Or Weekday() = vbSunday Then

    Found the solution with help from Chandoo's Luke M:

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. weekday
    By pichai in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-30-2008, 06:32 AM
  2. [SOLVED] Not weekday
    By Arne Hegefors in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-16-2006, 01:20 PM
  3. [SOLVED] which weekday?
    By Arne Hegefors in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-16-2006, 11:35 AM
  4. Weekday
    By Thomas in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-28-2006, 08:50 PM

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