Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm a relative newby with VBA. I need to return the last day of the month
for a series of dates. I have found this formula many places on the web, but get a compile error with it. dtEOM =DATE(YEAR(A1),MONTH(A1)+1,0) where dtEOM is my vairable declared as a Date. The error is a 'Compile Error: Expected: )' and YEAR is highlighted. My intent is to fill dtEOM with the month, create some record counts, and go to the next month, reset the variable, and do it again. Your help is appreciated. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Counting instances of found text (Excel error? Or user error?) | Excel Worksheet Functions | |||
Error Handling - On Error GoTo doesn't trap error successfully | Excel Programming | |||
Form Err.Raise error not trapped by entry procedure error handler | Excel Programming | |||
run-time error '1004': Application-defined or object-deifined error | Excel Programming | |||
Automation Error, Unknown Error. Error value - 440 | Excel Programming |