Consulting

Results 1 to 4 of 4

Thread: WORKDAY function

  1. #1

    WORKDAY function

    is there a shortway to use the workday (excel)function i a userform?? based on textboxes??


    Jack

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Set a reference to the ATPVBAEN project, and then just call it as a normal VBA function.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    im not familiar with this, how does it work??

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    In the VBIDE, go to Tools>Refernces.

    Scroll down the list until you find atpvbaen.xls and check it.

    Then in the code use something like

    [vba]

    MsgBox Format(workday(Date, 12), "dd mmm yyyy")
    [/vba]
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •