Re: Split or copy records n-times as excel scans the value of a colum
- From: "Tom Ogilvy" <twogilvy@xxxxxxx>
- Date: Mon, 11 Jul 2005 15:12:38 -0400
Sub AAA()
Dim i As Long, Num As Long
i = 1
Do While Cells(i, 1) <> ""
Num = Cells(i, 1)
Cells(i, 1).Offset(1, 0).Resize(Num).EntireRow.Insert
Set rng = Cells(i, 1).Offset(1, 0).Resize(Num)
Cells(i, 1).EntireRow.Copy Destination:=rng
i = i + Num + 1
Loop
End Sub
--
Regards,
Tom Ogilvy
"Loops" <Loops@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:EE838AF0-D20B-4218-87C9-243AC92D70E2@xxxxxxxxxxxxxxxx
> I would like to split or copy record n-times based on n-value on of a row.
> How do you contruct the loop?
>
.
- References:
- Prev by Date: Re: Individual Page Selection
- Next by Date: Re: How to make Pulldown menus
- Previous by thread: Re: Split or copy records n-times as excel scans the value of a colum
- Next by thread: Controls in a Work***
- Index(es):