I'm getting the runtime error whent I try to select a range using a defined name and not the actual range reference. I name my variables, then use the set command to define the range of the name(s). When the code selects the range using cell references, everything works . When I select the range using the name I defined, I get the error. It's very frustrating. My code is below. Also, if there is a more efficient way to write the code, please feel free to edit. Thank you.
Sub CVCB_dnld2()
'
Dim myRows As Integer
Dim myRange As Range
Dim myDrCr As Range
Dim myOrder As Range
' Format and Sort CVCB Activity Dowload
myRows = Worksheets("Sheet1").Range(Range("a2"), Range("a2").End(xlDown)).Rows.Count
Set myRange = Worksheets("Sheet1").Range(Range("A2"), Range("A2").Offset(myRows - 1, 10))
Set myDrCr = Worksheets("Sheet1").Range(Range("E2"), Range("E2").Offset(myRows - 1, 1))
Set myOrder = Worksheets("Sheet1").Range(Range("K2"), Range("K2").Offset(myRows - 1, 0))
Worksheets("Sheet1").Range(Range("a2"), Range("a2").End(xlDown)).Select 'Works as intended
Worksheets("Sheet1").Range(Range("E2"), Range("E2").Offset(myRows - 1, 1)).Select 'Works as intended
Worksheets("Sheet1").Range(Range("K2"), Range("K2").Offset(myRows - 1, 0)).Select 'Works as intended
Range(myRange).Select 'Gets runtime error
Range(myDrCr).Select 'Gets runtime error
Range(myOrder).Select 'Gets runtime error
Sub CVCB_dnld2()
'
Dim myRows As Integer
Dim myRange As Range
Dim myDrCr As Range
Dim myOrder As Range
' Format and Sort CVCB Activity Dowload
myRows = Worksheets("Sheet1").Range(Range("a2"), Range("a2").End(xlDown)).Rows.Count
Set myRange = Worksheets("Sheet1").Range(Range("A2"), Range("A2").Offset(myRows - 1, 10))
Set myDrCr = Worksheets("Sheet1").Range(Range("E2"), Range("E2").Offset(myRows - 1, 1))
Set myOrder = Worksheets("Sheet1").Range(Range("K2"), Range("K2").Offset(myRows - 1, 0))
Worksheets("Sheet1").Range(Range("a2"), Range("a2").End(xlDown)).Select 'Works as intended
Worksheets("Sheet1").Range(Range("E2"), Range("E2").Offset(myRows - 1, 1)).Select 'Works as intended
Worksheets("Sheet1").Range(Range("K2"), Range("K2").Offset(myRows - 1, 0)).Select 'Works as intended
Range(myRange).Select 'Gets runtime error
Range(myDrCr).Select 'Gets runtime error
Range(myOrder).Select 'Gets runtime error