#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default Plz help :)

For i = Dates.Count To 1 Step -1
DTadj(i) = (Application.Run.WORKDAY(Dates(i), 1, Holidays)) - Dates(i)
Next

why doesn't workday function run?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 510
Default Plz help :)

Hi John,

have you tried
Application.WorksheetFunction.Workday

HTH
Cheers
Carim

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default Plz help :)

yea that doesn't work either

"Carim" wrote:

Hi John,

have you tried
Application.WorksheetFunction.Workday

HTH
Cheers
Carim


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default Plz help :)

it is in a UDF... does that matter?

"John" wrote:

yea that doesn't work either

"Carim" wrote:

Hi John,

have you tried
Application.WorksheetFunction.Workday

HTH
Cheers
Carim


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 510
Default Plz help :)

John,


If I am not mistaken it does matter ...
because, in addition to processes which would modify cells in the
worksheet, there are certain functions which are not available within
an UDF ...
Let me try to dig a bit further ...

Carim



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default Plz help :)

from Mr Ogilvy

Application.Run("ATPVBAEN.XLA!Workday", Date, 20, Holidays) - Dates(i)

"Carim" wrote:

John,


If I am not mistaken it does matter ...
because, in addition to processes which would modify cells in the
worksheet, there are certain functions which are not available within
an UDF ...
Let me try to dig a bit further ...

Carim


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"