VBA Form/Button - inventory copy to another sheet with specified qty

denzol

New Member
Joined
Jul 27, 2011
Messages
1
Hi guys:

I have a table of data (parts inventory) in which I need to be able to extract items to another sheet with specified quantities. And then adjust the inventory.

Ideally, once I narrowed down my search/filter results and placed cursor on any of the cells on a particular line, I would like to have a button “Take”, by pressing it I want it to tell me remaining quantity (from column L) and ask Qty I’m taking, and then copy the whole string to the last blank row on another sheet (“OUT”) with that specified qty. Qty on the inventory sheet must be adjusted as well. Message box at the end telling what’s remaining would be nice too.

I managed a macro to copy a row of data from Inventory sheet to sheet OUT with a simple macro recorder. But I would like to have a button that will take me through the process of specifying the quantities and adjusting the inventory…

Please anyone help?
Thanks in advance!

Denis
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Forum statistics

Threads
1,215,963
Messages
6,127,951
Members
449,412
Latest member
montand

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top