I am trying to write a Visual Basic code for an Excel worksheet.
I have data in Sheet 2 and would like to retrieve values from Sheet 2 and return them to a cell in Sheet 1.
First I need to search in Sheet 2, Column A for the string "TOTAL OR". Once that value is found, I then need to search Sheet 2, Column B for the value that matches "TOTAL OR" in the same row. Once that vaule is found, I need to return it to a cell in Sheet 1.
The data is updated monthly and the number of rows is variable, therefore I cannot use a simple Excel formula based on a specific row. There is also multiple worksheets that I need to reference to return data to Sheet 1, i.e. retrieve values from Sheet 3 and return to Sheet 1, retrieve values from Sheet 4 and return to Sheet 1, etc.