View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Don Guillett[_4_] Don Guillett[_4_] is offline
external usenet poster
 
Posts: 2,337
Default 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