I have two questions. Referencing the following code:
1. I am trying trying to get make the RC[-42] an absolute by putting a dollar sign in front of it. I am pretty sure I need to use the ascii CHR(36) but I can't seem to get the syntax correct. I have tried just about everything imaginable but it won't compile. The one I thought would work is " & chr(36) "RC[-42] but to no avail.
2. Inside the VLOOKUP, I need the column returned to increment by 1 as it loops through. What is the best way to accomplish this?
I have been combing the internet for about 2 hours and can't seem to find an example.
Code:
ActiveCell.Offset(0, 1).Activate
For k = 0 To 10
ActiveCell.Offset(0, k).FormulaR1C1 = "=RC[-39]+(RC[-39]/21)*VLOOKUP([B]RC[-42][/B],DSOH" & aRegions(i, 1) & ",4,FALSE)-RC[11]"
Next K
1. I am trying trying to get make the RC[-42] an absolute by putting a dollar sign in front of it. I am pretty sure I need to use the ascii CHR(36) but I can't seem to get the syntax correct. I have tried just about everything imaginable but it won't compile. The one I thought would work is " & chr(36) "RC[-42] but to no avail.
2. Inside the VLOOKUP, I need the column returned to increment by 1 as it loops through. What is the best way to accomplish this?
I have been combing the internet for about 2 hours and can't seem to find an example.