Automatically define series of named ranges
On Fri, 18 Jun 2004 02:33:08 -0700, keepITcool
wrote:
Sub Name13()
Dim r&
With Range([a1], [a65536].End(xlUp))
For r = 1 To .Rows.Count Step 13
.Cells(r, 1).Resize(13, 1).Name = "rng" & Format(r \ 13 + 1, "000")
Next
End With
End Sub
This is almost what I want, but it should create output like this:
rng001 : A1:A13
rng002 : A2:A14
I do that by changing Step 13 to Step 1, right?
|