alexjamesbrown
Programmer
I am trying to create a macro to do the following:
I have an excel file, called Warehouse.xls
This has two columns - Column A, which is ProductCode, and Column B which is WarehouseLocation
This file is a list of all my products, and where they are stored in the warehouse.
I then have a second workbook called Orders.xls
this is automatically generated from various vendors.
This has many columns, but the column relevant here is "ProductCode"
What i need to do, is to run a macro, and have it add a column to the end of my Orders.xls workbook, and populate this with the relevant WarehouseLocation (from Warehouse.xls) based on the value of the Orders.xls ProductCode.
Any ideas where i start?
Im familiar with both visual basic, and SQL (im a dba) but i've never done any vba work as such.
any help, or pointers in the right direction would be great!
Regards,
Alex
I have an excel file, called Warehouse.xls
This has two columns - Column A, which is ProductCode, and Column B which is WarehouseLocation
This file is a list of all my products, and where they are stored in the warehouse.
I then have a second workbook called Orders.xls
this is automatically generated from various vendors.
This has many columns, but the column relevant here is "ProductCode"
What i need to do, is to run a macro, and have it add a column to the end of my Orders.xls workbook, and populate this with the relevant WarehouseLocation (from Warehouse.xls) based on the value of the Orders.xls ProductCode.
Any ideas where i start?
Im familiar with both visual basic, and SQL (im a dba) but i've never done any vba work as such.
any help, or pointers in the right direction would be great!
Regards,
Alex