View Single Post
  #9   Report Post  
Posted to microsoft.public.excel.programming
Claus Busch Claus Busch is offline
external usenet poster
 
Posts: 3,872
Default using vlookup in vba

Hi again,

Am Thu, 7 Feb 2013 10:52:36 +0100 schrieb Claus Busch:

For i = 1 To 10
Sheets("Sheet1").Cells(i, 2).Formula = " _
=VLOOKUP(C1,'ILK1'!C2:C54," & i & ",0)"
Next


in Excel 2007 or later versions ILK1 is a cell reference. Therefore you
have to put it in apostrophes.


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2