T
Tony Zappal
Hi all,
I have a range of cells which are either blank or contain data.
I'd like to create a dynamic(?) array and enter the values of those cells.
Then, after that, i'd like to output the array into a msgbox.
I've started with the below code, but am struggling to get it to work and to
do what i'm required. Can anyone help?
Cheers,
Tony Z.
Sub collate()
Dim N As Long
Arr = Range("F2:H50").Value
For N = LBound(Arr) To UBound(Arr)
impe = impe + Arr(N)
Next N
MsgBox impe
End Sub
I have a range of cells which are either blank or contain data.
I'd like to create a dynamic(?) array and enter the values of those cells.
Then, after that, i'd like to output the array into a msgbox.
I've started with the below code, but am struggling to get it to work and to
do what i'm required. Can anyone help?
Cheers,
Tony Z.
Sub collate()
Dim N As Long
Arr = Range("F2:H50").Value
For N = LBound(Arr) To UBound(Arr)
impe = impe + Arr(N)
Next N
MsgBox impe
End Sub