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
- Saints row 2 cheats - Guide
- Excel macro to create new sheet based on value in cells - Guide
- Based on the value in cells b77 b81 ✓ - Excel Forum
- Dash becomes date on excel ✓ - Office Software Forum
2 responses
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
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