XL5: EOMONTH() Function Off by One DayLast reviewed: September 12, 1996Article ID: Q115399 |
The information in this article applies to:
SYMPTOMSIn Microsoft Excel 5.0, if you use the EOMONTH() function with the Visual Basic, Applications Edition, ExecuteExcel4Macro method, the resulting date will be off by one day.
WORKAROUNDTo return the correct day of the month, modify the function so that one day is added to the result. For example, you would change the following line of code
MsgBox Format(ExecuteExcel4Macro("EOMONTH(TODAY(),0)"), "m/d/yy")to:
MsgBox Format(ExecuteExcel4Macro("EOMONTH(TODAY(),0)") + 1, "m/d/yy") STATUSMicrosoft is researching this problem and will post new information here as it becomes available.
|
KBCategory: kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |