Forum

Help with VBA for S...
 
Notifications
Clear all

Help with VBA for Store Quantity Management

6 Posts
3 Users
0 Reactions
70 Views
(@no1stez)
Posts: 2
New Member
Topic starter
 

Hello everyone,

I am new to VBA and have become stuck, Can someone please help?

As you can see i can add or remove stock using in-out sheet but only if it matches cell to cell wothing vba,
Is there a way to match item selected and then add or remove stock quantity, ie: like a lookup>

Many Thanks

 
Posted : 31/05/2023 6:14 am
Riny van Eekelen
(@riny)
Posts: 1196
Member Moderator
 

Hi, if you intended to upload a file, please try again. Don't forget the 'Start upload' button and wait until it's ready before you submit your reply.

 
Posted : 31/05/2023 6:20 am
(@no1stez)
Posts: 2
New Member
Topic starter
 

Please see attached file

 
Posted : 31/05/2023 6:24 am
(@keebellah)
Posts: 373
Reputable Member
 

The code you've written (or copied or whatever) is a mess.
No logic whatsoever, the dropdown list in IN-OUT does not make sense
There's a long way to go if this a project you're taking seriously

 
Posted : 01/06/2023 2:55 am
(@keebellah)
Posts: 373
Reputable Member
 

Taking a look at the code you've got an overkill of unnecessary data
Searbox sheet, Data sheet and the Dynamic sheet is something I do not knwo why you even consirede it.
Try the attached file, just select the item in the IN-OUT, place the quanty and choose in or out and press the button

There is no check to see if the qty out is greater that the QTY in stock but that you can work out yourself

 
Posted : 01/06/2023 4:32 am
(@keebellah)
Posts: 373
Reputable Member
 

Don't know if you're still interested in the file but I limited the file to the minimal tables and extra's
I left the searchfilter sheet but it's not used here.

The OUT is limited to the max QTY in stock so if you have 425 in stock and want 500 out it will only accept 425 OUT

Have fun playing around with it. BTW I simplified the formulas in the IN-OUT sheet you were still using the pre 365 techniques while using XLOOKUP()

 
Posted : 01/06/2023 4:45 pm
Share: