Hey,
here is my code:
I get error 424 - Object required.
Thanks for the help.
here is my code:
Code:
Sub CompileData()
Dim DataSheet As Worksheet, CalcSheet As Worksheet
Dim Columns(), CalcState, HPGs()
Columns() = Array(1, 2, 3, 5, 6, 9, 12)
'Create HPG Array
HPGs() = CreateArray(DataSheet, Columns(0).Value)
End Sub
Function CreateArray(DataSheet As Worksheet, Clm As Long) As Variant
'Code
End Function
I get error 424 - Object required.
Thanks for the help.