+ Reply to Thread
Results 1 to 2 of 2

Code to evaluate a column of dates and change any dates that fall on weekends.

  1. #1
    Registered User
    Join Date
    10-19-2010
    Location
    Florida
    MS-Off Ver
    Office 365
    Posts
    7

    Code to evaluate a column of dates and change any dates that fall on weekends.

    As the title states, i have a column of dates provided by another program. I would like to run a code that will go through that column and automatically change any dates that fall on weekends to the next working day. Thank you in advance.

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Code to evaluate a column of dates and change any dates that fall on weekends.

    You can use WORKDAY, so something like
    Please Login or Register  to view this content.
    modify sheet and column reference as appropriate
    Last edited by XLent; 01-25-2021 at 04:58 AM. Reason: modified Sheet Name to better illustrate purpose of .Parent in Evaluate call, 2nd update for typo!

+ 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. [SOLVED] VBA code to skip custom dates and weekends
    By tsamuels in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-21-2014, 08:23 PM
  2. Replies: 6
    Last Post: 03-11-2013, 06:11 PM
  3. [SOLVED] Averaging values if desired dates fall between range of dates
    By gbcpurdue in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-21-2012, 02:51 PM
  4. Average column when dates fall between x and y
    By amycclark in forum Excel General
    Replies: 2
    Last Post: 01-18-2012, 11:51 AM
  5. Need Sumif to count dates that fall within a range of dates
    By Paralegal101 in forum Excel General
    Replies: 1
    Last Post: 09-12-2011, 02:26 PM
  6. Macro to change dates (while skipping weekends)
    By jchamber00 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-25-2009, 04:31 PM
  7. Replies: 5
    Last Post: 10-26-2005, 02:05 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