BrianExcel
Well-known Member
- Joined
- Apr 21, 2010
- Messages
- 975
Currently I am employing the following calculation in a cell within a workbook (the text is verbatim, including dashes, apostrophes, etc.).
=VLOOKUP(B3,'FY12 Renewal Savings BB Data Report_SAB.xlsx'!June_2011_Data,7,0)
The calculation references a range in an external workbook I am looking up from.
I am trying to get this coded into Excel, so that when I push a button it scrolls down the column and performs that calculation for each cell until the end of the data set.
Right now, I have it inserted into the button_click code as follows:
BUT, when I run it I get: "Run-time error '1004': Application-defined or object-defined error.
Can anyone advise what I am doing wrong?
=VLOOKUP(B3,'FY12 Renewal Savings BB Data Report_SAB.xlsx'!June_2011_Data,7,0)
The calculation references a range in an external workbook I am looking up from.
I am trying to get this coded into Excel, so that when I push a button it scrolls down the column and performs that calculation for each cell until the end of the data set.
Right now, I have it inserted into the button_click code as follows:
Code:
=VLOOKUP(B3,'FY12 Renewal Savings BB Data Report_SAB.xlsx'!June_2011_Data,7,0)
BUT, when I run it I get: "Run-time error '1004': Application-defined or object-defined error.
Can anyone advise what I am doing wrong?