View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Michael Kucan Michael Kucan is offline
external usenet poster
 
Posts: 2
Default WorksheetFunction.EOMonth

Function eom(dteDate As Date) As Date
eom = (DateAdd("m", 1, dteDate - (Day(dteDate) - 1))) - 1
End Function

--
Thanks,

Michael Kucan


"Office_Novice" wrote:

Can this worksheet function be replicated in VBA? I would like to get the end
of any given month, Any Thoughts?