First of all let me start by saying that I have very limited experience with macros and VBA but I programmed in Java so I know the concepts of OOP
So we have a code system compromised of 10 digits
the first two digits are the main category of an item and then every next two digits are subcategories of the previous digits
I have an excel file with all the codes in column A and then next to each code is 5 columns with each of the category names starting with the main category going threw to the last subcategory
the data files we receive only have these codes and the data next to them so my manager wants me to program a macro that reads the item code and goes into the other excel file and gets the 5 columns with the category and subcategory names and then insert them after the code and before the data in the original file
Can this be done? can a macro goes and check another file? or do I have to copy the codes into the same file as the data and the macro then can check another worksheet?
if anybody can help with the major syntax and functions needed to achieve this I would be highly grateful.
So we have a code system compromised of 10 digits
the first two digits are the main category of an item and then every next two digits are subcategories of the previous digits
I have an excel file with all the codes in column A and then next to each code is 5 columns with each of the category names starting with the main category going threw to the last subcategory
the data files we receive only have these codes and the data next to them so my manager wants me to program a macro that reads the item code and goes into the other excel file and gets the 5 columns with the category and subcategory names and then insert them after the code and before the data in the original file
Can this be done? can a macro goes and check another file? or do I have to copy the codes into the same file as the data and the macro then can check another worksheet?
if anybody can help with the major syntax and functions needed to achieve this I would be highly grateful.