chris25151459
New Member
- Joined
- Apr 18, 2016
- Messages
- 12
Hi guys, I have a rather specific task i would like to automate to make workflow at work as efficient as possible. First let me put you in the picture.
As part of my job i have to test certain equipment and complete a workbook with the test results ready fro submission. I have automated most of this process already using VBA but my skills are limited to say the least. Here is what i want to achieve:
I have one workbook that contains the test equipment's information and results (Workbook "A") and another that acts as the report i need to submit (Workbook "B").
Example Workbook A (Contains the test results)
Cell C4 = Equipment "NAME" Cell G4 = Test Result
Example Workbook B (where the results are going to go)
Cell AN20 = Equipment "LONGER NAME" Cell AP20 = Test Result
The names are not exactly the same and they are not always in the same location as projects differ from one to another, so referencing is out i think.
What i would like to try and do is figure out a way in VBA that looks at the cell AN20 in WB "B" and only take the =Right(A1, 18) information in that cell.
Then compares this with the information in WB "A" and finds the result that belongs to the information provided.
Once excel has found the info it then prints the result in cell AP20 in WB "B". I need to run the VBA for all the equipment names in WB "B" which are always in different columns but they are always 3 columns back from the end result after that there is no more information, so maybe there is a way to find the last cell of a row that has info in it and reference it from there?
I would really appreciate any help, Thanks.
Chris
As part of my job i have to test certain equipment and complete a workbook with the test results ready fro submission. I have automated most of this process already using VBA but my skills are limited to say the least. Here is what i want to achieve:
I have one workbook that contains the test equipment's information and results (Workbook "A") and another that acts as the report i need to submit (Workbook "B").
Example Workbook A (Contains the test results)
Cell C4 = Equipment "NAME" Cell G4 = Test Result
Example Workbook B (where the results are going to go)
Cell AN20 = Equipment "LONGER NAME" Cell AP20 = Test Result
The names are not exactly the same and they are not always in the same location as projects differ from one to another, so referencing is out i think.
What i would like to try and do is figure out a way in VBA that looks at the cell AN20 in WB "B" and only take the =Right(A1, 18) information in that cell.
Then compares this with the information in WB "A" and finds the result that belongs to the information provided.
Once excel has found the info it then prints the result in cell AP20 in WB "B". I need to run the VBA for all the equipment names in WB "B" which are always in different columns but they are always 3 columns back from the end result after that there is no more information, so maybe there is a way to find the last cell of a row that has info in it and reference it from there?
I would really appreciate any help, Thanks.
Chris