Private Sub SelectQtyOH_Click() Dim OH As String Dim x As Long x = 2 OH = InputBox("Enter Search Quantity") Sheets("Inventory").Select Do While Cells(x, 1) <> "" If Cells(x, 7) = OH Then Worksheets("Inventory").Rows(x).Copy Worksheets("OHReport").Activate erow = Sheets("OHReport").Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).Row ActiveSheet.Paste Destination:=Worksheets("OHReport").Rows(erow) End If Worksheets("Inventory").Activate x = x + 1 Loop Application.CutCopyMode = False Sheets("OHReport").Select End Sub
Gain unlimited access to on-demand training courses with an Experts Exchange subscription.Get Access
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE
Connect with Certified Experts to gain insight and support on specific technology challenges including: