JeremyA1976
Board Regular
- Joined
- Aug 3, 2015
- Messages
- 59
Hello All,
Thanks for reading and any help I may receive..
I have a workbook that acts as a material form. I also have an Inventory workbook for all the materials we consume on a regular basis. I need help with a macro that will read from my Charge Out Template.xlsm workbook, from worksheet "LOGCOUNT". On this worksheet, down column (H), starting at row 2, there are a series of new quantities (for specific items) that I need to replace in my Inventory Sheet.xlsm, on worksheet "Inventory". On both sheets, my product description is column (A). I need the charge out form workbook to start at (H2) of sheet "LOGCOUNT" and use the cell value to find what to replace.)
For example, i have an item description "12 GA GALV 60X120" in cell (A2). In cell (G2) of the same worksheet, I have the value (D4). This is the location on the inventory workbook that I need to replace with the value of cell H2 (5). The problem is... the number of rows in column (H) can vary, so I will need it to find the last row with any text in it based on column (A), so it knows where to stop replacing values.
I am not so good with the search and find aspect of VBA and I would appreciate a clearer understanding, so I am not looking for just code, but an explanation of how it is written so I may learn.
P.S. I already use Vlookup to search and report WHERE I need to place the new value, i just need help with finding and replacing based on row.
Thanks,
Jeremy
Thanks for reading and any help I may receive..
I have a workbook that acts as a material form. I also have an Inventory workbook for all the materials we consume on a regular basis. I need help with a macro that will read from my Charge Out Template.xlsm workbook, from worksheet "LOGCOUNT". On this worksheet, down column (H), starting at row 2, there are a series of new quantities (for specific items) that I need to replace in my Inventory Sheet.xlsm, on worksheet "Inventory". On both sheets, my product description is column (A). I need the charge out form workbook to start at (H2) of sheet "LOGCOUNT" and use the cell value to find what to replace.)
For example, i have an item description "12 GA GALV 60X120" in cell (A2). In cell (G2) of the same worksheet, I have the value (D4). This is the location on the inventory workbook that I need to replace with the value of cell H2 (5). The problem is... the number of rows in column (H) can vary, so I will need it to find the last row with any text in it based on column (A), so it knows where to stop replacing values.
I am not so good with the search and find aspect of VBA and I would appreciate a clearer understanding, so I am not looking for just code, but an explanation of how it is written so I may learn.
P.S. I already use Vlookup to search and report WHERE I need to place the new value, i just need help with finding and replacing based on row.
Thanks,
Jeremy