ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to call EOMONTH(a, b) function (https://www.excelbanter.com/excel-programming/297817-how-call-eomonth-b-function.html)

Lee Dengo

How to call EOMONTH(a, b) function
 
Hi there,
How are you today.
How do I call EOMONTH(a, b) function from a VBA code.
I tried to use
application.worksheetfunction.EOMONTH(1/1/1985, 1)
But I got error message.
BTW, I have my Analysis toolpak and Analysis toolpak -
vba selected in the add-in menu.

Thanks

Lee

Don Guillett[_4_]

How to call EOMONTH(a, b) function
 
try putting " " around the date and use format also

--
Don Guillett
SalesAid Software

"Lee Dengo" wrote in message
...
Hi there,
How are you today.
How do I call EOMONTH(a, b) function from a VBA code.
I tried to use
application.worksheetfunction.EOMONTH(1/1/1985, 1)
But I got error message.
BTW, I have my Analysis toolpak and Analysis toolpak -
vba selected in the add-in menu.

Thanks

Lee





All times are GMT +1. The time now is 02:41 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com