+ Reply to Thread
Results 1 to 4 of 4

VBA - List Dates excluding Weekends and Holidays

  1. #1
    Registered User
    Join Date
    09-09-2012
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    3

    VBA - List Dates excluding Weekends and Holidays

    Really appreciate if someone could help. This may be a little long. I apologize.

    I currently have a function in which when I enter a date that is not a trading day it returns an error.

    The Code is:

    Please Login or Register  to view this content.
    Now I have to be able to create a list of dates using vba excluding weekends and the holidays above. What I have now is:

    Please Login or Register  to view this content.
    This actually returns a list of dates excluding the weekends for the year 2011, but is very limited and doesn't exclude the holidays I mentioned.
    Could someone help me modify mine or if there's a better solution would be greatly appreciated. Thank You
    Last edited by jeffreybrown; 11-01-2012 at 11:14 PM. Reason: Forum Rule #3. Please use code tags…Thanks.

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: VBA - List Dates excluding Weekends and Holidays

    How about:

    Please Login or Register  to view this content.
    Gary's Student

  3. #3
    Registered User
    Join Date
    09-09-2012
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: VBA - List Dates excluding Weekends and Holidays

    Thanks So Much!!! It worked like a charm

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: VBA - List Dates excluding Weekends and Holidays

    @tykhoo,

    Please use code tags next time...Thanks.
    HTH
    Regards, Jeff

+ 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