Hi everyone.
[FONT=verdana, geneva, lucida, lucida grande, arial, helvetica, sans-serif]want to assign serial number in column A like 1,1,2,2,3,3 and like
[/FONT]using following vba code but asssign serial number like 1,2,3, and like
Sub FillSerialNumbers()
With Range("A3:A" & Range("B" & Rows.Count).End(xlUp).Row)
.Cells(1, 1).Value = 1
.DataSeries Rowcol:=xlColumns, Type:=xlLinear, Step:=1, Trend:=False
End With
End Sub
Any ideas? I'm sure it's a minor error but I'm really stumped!!
Thanks in advance,
Dharmesh
[FONT=verdana, geneva, lucida, lucida grande, arial, helvetica, sans-serif]want to assign serial number in column A like 1,1,2,2,3,3 and like
[/FONT]using following vba code but asssign serial number like 1,2,3, and like
Sub FillSerialNumbers()
With Range("A3:A" & Range("B" & Rows.Count).End(xlUp).Row)
.Cells(1, 1).Value = 1
.DataSeries Rowcol:=xlColumns, Type:=xlLinear, Step:=1, Trend:=False
End With
End Sub
Any ideas? I'm sure it's a minor error but I'm really stumped!!
Thanks in advance,
Dharmesh