PDA

View Full Version : WORKDAY function



enfantter
09-27-2007, 06:15 AM
is there a shortway to use the workday (excel)function i a userform?? based on textboxes??


Jack

Bob Phillips
09-27-2007, 06:23 AM
Set a reference to the ATPVBAEN project, and then just call it as a normal VBA function.

enfantter
09-28-2007, 04:08 AM
im not familiar with this, how does it work??

Bob Phillips
09-28-2007, 07:03 AM
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



MsgBox Format(workday(Date, 12), "dd mmm yyyy")