Using VBA and a macros button, I can capture data found on Sheet2 and display it on Sheet1 by using the function below. The problem is if the spreadsheet is renamed to say Financial Statements 2, then the macros won't work..
total = Workbooks("Financial Statements").Sheets("Sheet2").Range("S5").Value
Is there a way to reference the workbook to itself, like using a this statement instead of the spreadsheet name? That way it won't matter what the spreadsheet is named.
Thanks in advance.
Bookmarks