Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is it possible to use edate function in VBA? I tried
WorksheetFunction.edate = ... and that doesn't work. TIA. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is it possible to use edate function in VBA? I tried
WorksheetFunction.edate = ... and that doesn't work. TIA. That particular worksheet function is not accessible in VBA. You can find out which ones are accessible by using the Object Browser. Merjet |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try something like
MsgBox Format(Application.Evaluate("edate(A16, 5)"), "dd mmm yyyy") -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "fdiez67" wrote in message ... Is it possible to use edate function in VBA? I tried WorksheetFunction.edate = ... and that doesn't work. TIA. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The EDate function is part of the Analysis Tool Pak add-in. To use it in
VBA, you need to first load the "Analysis Tool Pak - VBA" add-in in Excel. Then, open your VBA project, go to the Tools menu, choose Reference, and put a check next to ATBVBAEN.xls item. Once you do this, you can access the function directly. E.g., Dim Res Res = edate(Now, 3) Debug.Print Res -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "fdiez67" wrote in message ... Is it possible to use edate function in VBA? I tried WorksheetFunction.edate = ... and that doesn't work. TIA. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
EDATE Function | Excel Worksheet Functions | |||
Array Function & EDATE | Excel Worksheet Functions | |||
EDate function + #NAME? error | Excel Worksheet Functions | |||
edate function | Excel Worksheet Functions | |||
edate function | Excel Worksheet Functions |