I'm new to VBA and am trying to do some basic stuff, but vba doesn't seem to be letting me assign a named range to a variable, and then reference it.
The named range is scoped to the entire workbook, so I shouldn't have to reference the sheet beforehand. Here is the code:
Sub my_function()
Sheets("TEST").Select
numRange = Range("num")
Range(numRange).Select
Selection.Copy
Selection.Insert shift:=xlToRight
End Sub
Does anyone know what I'm doing wrong?