Hi All,
I have a main spreadsheet that contains a column listing cell references that appear on a worksheet in a 2nd spreadsheets. So the columns of data appears with the following
A1 = B55
A2 = B66
A3 = B44
I have written VBA code to pull the cell references from cells A1 to A3 in the main spreadsheet. I am then trying to write code that pulls the value in the 2nd spreadsheet based on the reference text string as pulled from the main spreadsheet. So I want to pull in the value of cell B55 in the second spreadsheet. I know this is easy to do in Excel using the INDIRECT worksheet function but I am not sure how to do it in Excel VBA.
Dim Cell Value as string
Dim Actual_Value_Second_File as String
CellValue= Sheets("Main").Range("A1")).Value
Actual_Value_Second_File = Sheets("Second").Range(CellValue).Value
Where A1 = B55 in the Main 1st spreadsheet
and I am tryiing to find the value in the 2nd spreadsheet in Cell B55 on the set Second
Any suggestons? I greatly appreciate any help.
I have a main spreadsheet that contains a column listing cell references that appear on a worksheet in a 2nd spreadsheets. So the columns of data appears with the following
A1 = B55
A2 = B66
A3 = B44
I have written VBA code to pull the cell references from cells A1 to A3 in the main spreadsheet. I am then trying to write code that pulls the value in the 2nd spreadsheet based on the reference text string as pulled from the main spreadsheet. So I want to pull in the value of cell B55 in the second spreadsheet. I know this is easy to do in Excel using the INDIRECT worksheet function but I am not sure how to do it in Excel VBA.
Dim Cell Value as string
Dim Actual_Value_Second_File as String
CellValue= Sheets("Main").Range("A1")).Value
Actual_Value_Second_File = Sheets("Second").Range(CellValue).Value
Where A1 = B55 in the Main 1st spreadsheet
and I am tryiing to find the value in the 2nd spreadsheet in Cell B55 on the set Second
Any suggestons? I greatly appreciate any help.