Hi
I have a piece of code. I've been able to figure out what to do but I need some housecleaning tips:
With this code:
How can break this range "C7,C9:C10,C13:C14,C17:C24,C27,C29,C31:C35", into, say, three lines (my actual range goes all the way to row 835, but with few tips I'll be able to handle the entire range)
And then why is it what when turning the selection to values only. It pastes the values of C7 only? How can I make it paste the values of its related to its related cell? Meaning, right now the entire range above is filled with the value of C7 only, and want the value of C9:C10 into C9:C10, C13:C14 and so forth and so forth.
Thanks,
Ron
I have a piece of code. I've been able to figure out what to do but I need some housecleaning tips:
With this code:
Code:
Worksheets(Xlfsheet).Range("C7,C9:C10,C13:C14,C17:C24,C27,C29,C31:C35").Offset(0, colnum).Select
Selection.FormulaR1C1 = "=VLOOKUP(RC[" & Var1 & "],IMPORT!C[" & Var2 & "]:C[" & Var3 & "],3,FALSE)"
Selection.Value = Selection.Value
How can break this range "C7,C9:C10,C13:C14,C17:C24,C27,C29,C31:C35", into, say, three lines (my actual range goes all the way to row 835, but with few tips I'll be able to handle the entire range)
And then why is it what when turning the selection to values only. It pastes the values of C7 only? How can I make it paste the values of its related to its related cell? Meaning, right now the entire range above is filled with the value of C7 only, and want the value of C9:C10 into C9:C10, C13:C14 and so forth and so forth.
Thanks,
Ron