shailesh.kumbhar
New Member
- Joined
- Nov 4, 2010
- Messages
- 10
Hi,
I have a formula in cell A2, I am trying to paste the formula till last row with data in column B. Trailing is the code that i am trying.
Sheets("master").Activate
ActiveSheet.Range("a2").formula = "=VLOOKUP(b2,Input!$K$11:$K$65536,1,0)"
Sheets("master").Range("a2").AutoFill Destination:=Range("a2:a" & Cells(Rows.Count, 2).End(xlUp).Row)
Where am i going wrong ?
I have a formula in cell A2, I am trying to paste the formula till last row with data in column B. Trailing is the code that i am trying.
Sheets("master").Activate
ActiveSheet.Range("a2").formula = "=VLOOKUP(b2,Input!$K$11:$K$65536,1,0)"
Sheets("master").Range("a2").AutoFill Destination:=Range("a2:a" & Cells(Rows.Count, 2).End(xlUp).Row)
Where am i going wrong ?