+ Reply to Thread
Results 1 to 6 of 6

Create Workbooks By Date But Not Weekends

  1. #1
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,015

    Create Workbooks By Date But Not Weekends

    .
    The following macro does a good job of copying a master workbook then saving for each day of the month.

    1 - How would the macro be edited to exclude weekend dates ?

    2 - How would the macro be edited to exclude specified dates in a list (holidays) ?

    Thanks

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Create Workbooks By Date But Not Weekends


    1 - Use VBA function Weekday.

    2 - Use Application.Match (See MATCH in Excel help) …

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,104

    Re: Create Workbooks By Date But Not Weekends

    How about
    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor
    Join Date
    07-14-2017
    Location
    Poland
    MS-Off Ver
    Office 2010
    Posts
    528

    Re: Create Workbooks By Date But Not Weekends

    Hi, You can also do it like this.
    The range named "holidays_" is on the sheet.
    Please Login or Register  to view this content.
    Regards.

  5. #5
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,015

    Re: Create Workbooks By Date But Not Weekends

    .
    Thank you all for your assistance. Greatly appreciated !

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,104

    Re: Create Workbooks By Date But Not Weekends

    Glad we could help & thanks for the feedback

+ 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. Replies: 10
    Last Post: 02-29-2024, 08:55 AM
  2. Replies: 7
    Last Post: 06-12-2018, 11:42 AM
  3. [SOLVED] Find the start date from end date and date range and exclude weekends
    By tantcu in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-28-2017, 04:43 AM
  4. formula for commit date minus completion date excluding weekends
    By jtmayo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-07-2012, 08:42 PM
  5. Replies: 2
    Last Post: 06-06-2012, 02:07 PM
  6. Create Schedule to skip weekends
    By jchambers00 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-03-2010, 01:45 PM
  7. Difference between todays date and a future date minus the weekends?!
    By kastle1982 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-26-2006, 05:21 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