VBA for managing purchasing and automatic storage update

markswan111

New Member
Joined
Sep 16, 2016
Messages
33
Dear Sir,

I have included a sample workbook

I am trying to create a vba to automate my purchasing and storage data entry.

as you can see in the workbook included there are two sheets, one for entering daily purchased items and there billing, and the other sheet is my storage for inventory purposes.

I currently have to re enter daily purchased items quantities manually in storage sheet after entering them in purchasing sheet daily , hence I need to automate this function as follows:

I need a vba that will transfer the quantities purchased for each item type that are entered in purchasing sheet to the same item type cell in storage sheet.

for example: I purchased on 9/4/2023 sugar and yeast and flour and butter etc....

after I finish entering these items in purchasing sheet, I will select for example cell C13 to cell D17, and I will use my macro to transfer and enter the quantities purchased on that date to the storage page, the vba should recognize the item type (for example sugar) and recognize its cell in storage sheet, and sum the quantity purchased on that day to cell E9, so are for all the other items in the selected cells in purchasing sheet.

also I will have the capability for modifying storage manually in any cell below row9 on different dates, and to sum starting inventory.

simply the vba will sum quantities in selected cell range in purchasing page to the item type in storage page, which are in the workbook example included cells c9 to F9.

I hope someone can help me create this vba correctly as I have failed to do so after so many tries.

many thanks for your help in advance
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Dear Sir,

I have included a sample workbook

I am trying to create a vba to automate my purchasing and storage data entry.

as you can see in the workbook included there are two sheets, one for entering daily purchased items and there billing, and the other sheet is my storage for inventory purposes.

I currently have to re enter daily purchased items quantities manually in storage sheet after entering them in purchasing sheet daily , hence I need to automate this function as follows:

I need a vba that will transfer the quantities purchased for each item type that are entered in purchasing sheet to the same item type cell in storage sheet.

for example: I purchased on 9/4/2023 sugar and yeast and flour and butter etc....

after I finish entering these items in purchasing sheet, I will select for example cell C13 to cell D17, and I will use my macro to transfer and enter the quantities purchased on that date to the storage page, the vba should recognize the item type (for example sugar) and recognize its cell in storage sheet, and sum the quantity purchased on that day to cell E9, so are for all the other items in the selected cells in purchasing sheet.

also I will have the capability for modifying storage manually in any cell below row9 on different dates, and to sum starting inventory.

simply the vba will sum quantities in selected cell range in purchasing page to the item type in storage page, which are in the workbook example included cells c9 to F9.

I hope someone can help me create this vba correctly as I have failed to do so after so many tries.

many thanks for your help in advance
 
Upvote 0
Dear Sir,

I tried to upload the excel file, but it won't let me, it only uploads images.

can I send it to your email?

thank you
 
Upvote 0
Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: VBA for managing purchasing and automatic storage update
There is no need to repeat the link(s) provided above but if you have posted the question at other places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: VBA for managing purchasing and automatic storage update
There is no need to repeat the link(s) provided above but if you have posted the question at other places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
Dear Peter,I Only posted at that link, I have not posted at any other forums, however still waiting for help and Resolution.
thank you
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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