Hi,
I would like to select multiple cells in VBA and output them into a selection of cells. However the output only shows the first value of the range. This is the code I have at the moment.
Sub CopyCells()
Dim CopyData As Single
CopyData = Range("f4, f7, h7, j8, l6, n7, n10").Value
Range("a1:a7") = CopyData
End Sub
I would like to select multiple cells in VBA and output them into a selection of cells. However the output only shows the first value of the range. This is the code I have at the moment.
Sub CopyCells()
Dim CopyData As Single
CopyData = Range("f4, f7, h7, j8, l6, n7, n10").Value
Range("a1:a7") = CopyData
End Sub