View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Andy Andy is offline
external usenet poster
 
Posts: 17
Default Help With VLOOKUP VBA Script Line

Hi Everyone

I have this code in Excel 2007 VBA

It has a value of say 1500 in lnLastNonBlankRowNumberDeliveries

ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-1],Deliveries!$B$8:$AI$" &
lnLastNonBlankRowNumberDeliveries & ",32,FALSE)"

I'm getting an "Application-defined or object-defined" error. Can
someone help me out.

Andy