Hi,
I have next issue with this code
It calculates avgtime correct but when it starts with the next line the program returns error 1004![]()
Sub test_array_average() Dim avgtime As Date Dim avg As Date t = Array("11:00:00", "11:00:06") avgtime = WorksheetFunction.Average(t(0), t(1)) avg = WorksheetFunction.Average(t) End Sub
The only difference is that t is an array with the same time values as above.
Somebody can help me to solve this probem?
Thanks in advance
Bookmarks