Hello all,
I am working with a report in Excel, in which I wrote a macro to balance information on a quarterly basis. The data used to look up and bring into the worksheet is stored on it's own sheet. I can write the macro, no problem, but each quarter the size of the information I am balancing changes. I am looking for a simplified way to change the macro so the macro does not have to be changed every quarter to reflect the new size. Here is an example of the code I used.
Range("F2").Select
ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-1],Siebel!R1C1:R5641C8,1,FALSE)"
There are 7 columns (3300 rows long) that are added and the vlookup formula applied to, but it would be nice to not have to change the column and row size every quarter. The macro changes formatting before and after the v-look up formula is applied.
Does anyone have an quick tips to change this?
Thanks!
Bookmarks