+ Reply to Thread
Results 1 to 7 of 7

Need the Second Business Day of the Month

  1. #1
    Registered User
    Join Date
    04-12-2012
    Location
    DC
    MS-Off Ver
    Excel 2007
    Posts
    4

    Need the Second Business Day of the Month

    Hey guys really frustrated.

    I am having trouble finding a formula to calculate the second business day of the month. I need this for the rest of my code. The closest thing I found is:



    Private Sub Workbook_Open()

    Dim lngEoM As Long
    lngEoM = Date-Day(Date)

    If Date = lngEOM + Choose(Weekday(lngEoM,vbMonday),0,0,0,0,0,2,1) Then
    MsgBox "It's the first day of the month"
    End If

    End Sub



    How can I change this to the second day?

    I was hoping I could get the value of this date so I can use it.

    Thanks!

  2. #2
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Need the Second Business Day of the Month

    try using this function


    Please Login or Register  to view this content.
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  3. #3
    Registered User
    Join Date
    04-12-2012
    Location
    DC
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Need the Second Business Day of the Month

    Thanks a million!!!

  4. #4
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Need the Second Business Day of the Month

    Happy to help, could you please mark this as solved?

  5. #5
    Registered User
    Join Date
    04-12-2012
    Location
    DC
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Need the Second Business Day of the Month

    ughh

    So I need to use this with an access macro and I can't use the workday function...any ideas?

  6. #6
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Need the Second Business Day of the Month

    there coudl be a way to do it with just access, but if you add the Microsoft Excel Libary to your references, it should still work.

  7. #7
    Registered User
    Join Date
    04-12-2012
    Location
    DC
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Need the Second Business Day of the Month

    You are awesome!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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