mferrisi
04-09-2007, 09:35 AM
I get an error when I attempt to use the EOMonth Function. I've pasted both the creation of the array and the attempt to extract a value and use the function. Thank you for your help.
For ACounter = 2 To DataCount
MultiArr(ACounter, 2) = Format(Cells(ACounter, 2).Value, "mm/dd/yyyy")
Next ACounter
Dim TestDate As Date
Dim SecondDate As Date
Dim abc As Integer
For abc = 2 To DataCount
If MultiArr(abc, 1) = "ThisOne" Then
TestDate = MultiArr(abc, 2)
SecondDate = WorksheetFunction.EOMonth(TestDate)
Else
End If
Next abc
Edited 10-Apr-07 by geekgirlau. Reason: insert vba tags
For ACounter = 2 To DataCount
MultiArr(ACounter, 2) = Format(Cells(ACounter, 2).Value, "mm/dd/yyyy")
Next ACounter
Dim TestDate As Date
Dim SecondDate As Date
Dim abc As Integer
For abc = 2 To DataCount
If MultiArr(abc, 1) = "ThisOne" Then
TestDate = MultiArr(abc, 2)
SecondDate = WorksheetFunction.EOMonth(TestDate)
Else
End If
Next abc
Edited 10-Apr-07 by geekgirlau. Reason: insert vba tags