Does this function help?
Sub MakeRange(start As String, numCells As Integer, rangeName As String)
Range(start).Select
Range(ActiveCell.Offset(0, 0), ActiveCell.Offset(0, numCells)).Select
ActiveWorkbook.Names.Add name:=rangeName, RefersTo:=Selection
End SubYou can call it as follows:
Call MakeRange("B4", 5, "newRangeA")B4 is the starting cell.
5 is the number of cells (same row) to include in the range.
"newRangeA" is the name of the range.
You can extend this to define both a row and column offset from the starting cell if that's needed.
HTH
-Rd