But try this:
Sub MReisbe(): Dim r As Long, i As Long, j As Long, ws As Worksheet, wo As Worksheet, O
Set ws = ActiveSheet: r = ws.UsedRange.Rows.count * 4
Set wo = Workbooks.Add(1).Worksheets(1)
ActiveWorkbook.Name = "Output Book": ActiveSheet.Name = "Output" 'or your names
O = wo.Range("A1:B" & r): O(1, 1) = "Product": O(1, 2) = "Inventory": j = 2
For i = 2 To r / 4
O(j, 1) = ws.Range(i, 1): O(j, 2) = ws.Range(i, 2): j = j + 1
O(j, 1) = ws.Range(i, 3): O(j, 2) = ws.Range(i, 4): j = j + 1
O(j, 1) = ws.Range(i, 5): O(j, 2) = ws.Range(i, 6): j = j + 1
O(j, 1) = ws.Range(i, 7): O(j, 2) = ws.Range(i, 8): j = j + 1
Next i
wo.Range("A1:B" & r) = O
End Sub
Directions for running the routine(s) just supplied
Copy the code to the clipboard
Press ALT + F11 to open the Visual Basic Editor.
Open a macro-enabled Workbook or save your Workbook As Macro-Enabled
Select “Module” from the Insert menu
Type "Option Explicit" then paste the code under it
And, you should be ready to go
With the cursor between Sub and End Sub press F5 (F8 to Single Step)
OR
Press ALT + Q to close the code window.
Press ALT + F8 then double click on the macro name
Bookmarks