Hi Everyone,
I have used the EoMonth function in macro and its not working. I have referenced the Analysis Tool - VBA through File---->options --->Addins. Below is the macro i have written. I am Beginner in writing macros.
Sub done()
Dim Dat As Date, x As Integer, y As Date
Dat = Format(Now(), "mmm - dd - yyyy")
x = Month(Dat)
y = EoMonth("dat", x)
MsgBox Dat
MsgBox x
Msgbox y
End Sub
When i run the above script i am getting the error message as "Compile Error: Sub or Function not Defined"
Bookmarks