Hi all,
I have taken and amended Loomah's first and last row from the FAQ section.
Thus I have:
But keep getting an error message of 'Object required' on the line 'set therange' which I do not understand in this context.
Can anyone help
Best regards
I have taken and amended Loomah's first and last row from the FAQ section.
Thus I have:
dim therange as range
Set therange = Worksheets("Data").Range(Cells(firstrow, firstcol), _
Cells(LastRow, firstcol)).Select
answer = Application.WorksheetFunction.Average(therange)
But keep getting an error message of 'Object required' on the line 'set therange' which I do not understand in this context.
Can anyone help
Best regards