I am wanting to make a macro in excel, I have around 40 cells that need to be copied and pasted into other cells across 9 worksheets. Is there a way to dim all of these cells once so I can use them later? I will have to do individual cells, and worksheets.
An example of what I am trying to do, keep getting error 1004
Sub Test()
Dim VName As String
VName = Range("B:21").Value
End Sub