Hi Sir,
Welcome to the MSDN Forum.
Actually, this statement "application.average(1,2,3)" can work in VBA, rather than VB6.
Anyway, you can try this way to get the average:
Dim intArray() As Integer = {1, 2, 3}
Console.WriteLine(intArray.Average)
Dim abc As Integer = {1, 2, 3}.Average
Console.WriteLine(abc)
Best regards,
Mike Feng
MSDN Community Support | Feedback to us
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
