Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I´m lookig for: Pos. Qty W H 1 2 316 910 2 4 399 1180 3 1 784 1180 to become: Pos. Qty W H 1 2 316 910 1 2 316 910 2 4 399 1180 2 4 399 1180 2 4 399 1180 2 4 399 1180 3 1 784 1180 Thanks! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Public Sub ProcessData()
Const TEST_COLUMN As String = "A" '<=== change to suit Dim i As Long Dim LastRow As Long With ActiveSheet LastRow = .Cells(.Rows.Count, TEST_COLUMN).End(xlUp).Row For i = LastRow To 2 Step -1 If .Cells(i, "B").Value 1 Then .Rows(i + 1).Resize(.Cells(i, "B").Value - 1).Insert .Rows(i).Copy .Cells(i + 1, "A").Resize(.Cells(i, "B").Value - 1) End If Next i End With End Sub -- __________________________________ HTH Bob wrote in message ... Hi, I´m lookig for: Pos. Qty W H 1 2 316 910 2 4 399 1180 3 1 784 1180 to become: Pos. Qty W H 1 2 316 910 1 2 316 910 2 4 399 1180 2 4 399 1180 2 4 399 1180 2 4 399 1180 3 1 784 1180 Thanks! |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Great!
Thank You, Bob! This piece made my life much easier! RV |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Automatically Duplicate Rows based on Volume. | Excel Worksheet Functions | |||
Convert Columns to Rows based upon a duplicate value | Excel Programming | |||
Duplicate rows, based on date difference | Excel Programming | |||
Duplicate rows based on date difference | Excel Programming | |||
Delete duplicate rows based on part of cell. | Excel Programming |