ricktate1810
New Member
- Joined
- Mar 16, 2018
- Messages
- 2
Hi,
I am new to VBA and need some help.
I have a user form designed to enter:
Stock code
Price
Qty
Postage cost
I have it set up so that when you enter:
Stock code - value goes to sheet (sales) and enters the value into next empty cell column a
price - column b
qty - column d
postage cost - column c
i have a save button and when i click this the above details copy into the sheet i want perfectly.
What i now need is when this button is pressed it also deducts the qty sold from the second sheet (called stock)
So for example if i entered stock code "abc" and qty "5" it will then look up "abc" on the stock sheet in column a and minus qty "5" from column b of the corresponding stock code.
Does that make sense?
I would appreciate any help you can offer!
I am new to VBA and need some help.
I have a user form designed to enter:
Stock code
Price
Qty
Postage cost
I have it set up so that when you enter:
Stock code - value goes to sheet (sales) and enters the value into next empty cell column a
price - column b
qty - column d
postage cost - column c
i have a save button and when i click this the above details copy into the sheet i want perfectly.
What i now need is when this button is pressed it also deducts the qty sold from the second sheet (called stock)
So for example if i entered stock code "abc" and qty "5" it will then look up "abc" on the stock sheet in column a and minus qty "5" from column b of the corresponding stock code.
Does that make sense?
I would appreciate any help you can offer!