Hi Phil
Must've had one beer too many. This issue
when you enter a NEW ITEM with the macro button, it doesn't put it into the INVENTORY list in the correct order
is created by these lines of code in the "CommandButtonCapturar_Click" code.
Change these lines of code from this
With Sheets("Inventory")
NR = .Range("A" & .Rows.Count).End(xlUp).Offset(1, 0).Row
.Range("A" & NR).Value = Me.Controls("Combobox" & i).Value
.Range("B" & NR).Value = Me.Controls("Combobox" & i + 6).Value
.Range("C" & NR).Value = Me.Controls("Combobox" & i + 11).Value
.Range("D" & NR).Value = Me.Controls("TextBox" & i).Value
.Range("E" & NR).Value = Me.Controls("CBcant" & i).Value
End With
to this
With Sheets("Inventory")
NR = .Range("A" & .Rows.Count).End(xlUp).Offset(1, 0).Row
.Range("A" & NR).Value = Me.Controls("Combobox" & i + 11).Value
.Range("B" & NR).Value = Me.Controls("Combobox" & i).Value
.Range("C" & NR).Value = Me.Controls("Combobox" & i + 6).Value
.Range("D" & NR).Value = Me.Controls("TextBox" & i).Value
.Range("E" & NR).Value = Me.Controls("CBcant" & i).Value
End With
Let me know of issues.
Bookmarks