Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
garlnnd,
I wouldn't say "nailed it" since it blows up when the value in column A is 1 or is non-numeric. Try my second version, which looks at both. HTH, Bernie MS Excel MVP "garlnnd" wrote in message ... Someone from another board nailed it with this: Dim I As Long Dim X As Long Dim rng As Range I = 2 Set rng = Range("A" & I) While rng.Value < "" X = rng.Value rng.EntireRow.Copy rng.Offset(1, 0).Resize(X - 1, 1).Insert Shift:=xlDown I = I + X Set rng = Range("A" & I) Wend Application.CutCopyMode = False Thanks for your help. -- garlnnd ------------------------------------------------------------------------ garlnnd's Profile: http://www.excelforum.com/member.php...o&userid=27832 View this thread: http://www.excelforum.com/showthread...hreadid=473426 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Simple Macro help? | Excel Discussion (Misc queries) | |||
simple macro | Excel Discussion (Misc queries) | |||
Need Help With A Very Simple Macro | Excel Discussion (Misc queries) | |||
Help with simple(?) macro | Excel Programming | |||
SIMPLE MACRO!!! | Excel Programming |