vba stock level - find product code and change the stock level from userform

jimmymac91

New Member
Joined
Sep 23, 2011
Messages
1
Hi guys.

I have been thinking of a number of ways of doing this but have no idea where to start with the code so would hugely appreciate any help anyone can give. The idea is that I have a spreadsheet with two columns, in column A I have all of my product codes, and in column B their stock level. I want to have a user form with an input box for the Product code and two other input boxes, one to add to the stock level after a delivery and the other to minus from the stock level if a product is sold. So for example I have a product code of ABCDE and stock level of 10,000. An order for 1,000 of product ABCDE come in so I enter the product code ABCDE and 1,000 into the stock sold box, then the stock level drops to 9,000.

Can anyone help?

THANKS! :biggrin:

If I haven't made myself clear please say and ill try to describe it better!
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Forum statistics

Threads
1,224,594
Messages
6,179,792
Members
452,942
Latest member
VijayNewtoExcel

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