HUGE Inventory Assistance - duplicate a row based on a cell value or quantity
Solved/Closed
klewis24
Posts
2
Registration date
Thursday October 1, 2020
Status
Member
Last seen
November 9, 2020
-
Oct 1, 2020 at 01:46 PM
klewis24 Posts 2 Registration date Thursday October 1, 2020 Status Member Last seen November 9, 2020 - Nov 9, 2020 at 11:50 PM
klewis24 Posts 2 Registration date Thursday October 1, 2020 Status Member Last seen November 9, 2020 - Nov 9, 2020 at 11:50 PM
Related:
- Excel duplicate row based on cell value
- Based on the cell values in cells b77 ✓ - Excel Forum
- How to insert rows in excel automatically based on cell value without vba ✓ - Excel Forum
- Outlook duplicate items remover (odir) - Download - Email
- Saints row 2 cheats - Guide
- Based on the values in cells b77 b88 ✓ - Excel Forum
2 responses
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Contributor
Last seen
December 27, 2022
555
Oct 8, 2020 at 11:16 AM
Oct 8, 2020 at 11:16 AM
Hi Klewis,
Here is a code to perform the requested task:
Best regards,
Trowa
Here is a code to perform the requested task:
Sub RunMe()
Dim mQ, y As Integer, x As Long
Application.ScreenUpdating = False
x = 2
Do
mQ = Range("A" & x).Value - 1
If mQ <> 0 Then
For y = 1 To mQ
Rows(x).Copy
Rows(x + 1).Insert
Next y
Range(Cells(x + 1, "A"), Cells(x + mQ, "A")).ClearContents
End If
x = x + mQ + 1
Loop Until Range("A" & x).Value = vbNullString
Application.ScreenUpdating = True
End Sub
Best regards,
Trowa