Sub FillSeries()
Dim rng As Range, stno As Long
Set rng = Selection ' or Range("a1:a100")
stno = 1 'autonumber starts from
rng(1) = stno
rng.DataSeries Rowcol:=xlColumns, Type:=xlLinear, Date:=xlDay, _
Step:=1, Trend:=False
End Sub
Sub AutoNumber()
' fills upto maximum value = 65536 = cells.rows.count
Dim rng As Range, stno As Long
Set rng = Selection ' or Range("a1:a100")
stno = 1 'autonumber starts from
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.