I attempted to create a macro that will return a function to a specified cell. However I keep getting an error at the line which is typed below:
ActiveCell.FormulaR1C1 = “=VLOOKUP($B21,[L:personalLDPERSONAL2.XLS]Ratings!$C$5:$AZ$500,2,FALSE) * VLOOKUP($B21,[L:personalLDPERSONAL2.XLS]Ratings!C5:AZ500,2,FALSE)”
If this VLOOKUP command were entered straight into the worksheet it would return a certain number which is identified by the contents in cell B21. This formula is just taking that number then multiplying it to itself. However, this did not work when I typed it into the macro program as above. I just started using Visual Basics about a few weeks ago, so I don’t know most of what the program can and cannot do. Will the program accept this argument or am I typing something wrong? If it doesn’t accept this kind of argument how can I get this macro to do what I am trying to make it do?
Thanks