Help With VLOOKUP VBA Script Line

  • Thread starter Thread starter Andy
  • Start date Start date
A

Andy

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
 
RowNum substituted for your paragraph...

ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-1],Deliveries!R8C2:R" & RowNum & "C35,32,FALSE)"

--
Jim Cone
Portland, Oregon USA
http://www.mediafire.com/PrimitiveSoftware
(Extras for Excel add-in: convenience built-in)



"Andy" <[email protected]>
wrote in message
news:f892e994-5ac6-4b04-ae3a-3839a07c7e95@i39g2000prd.googlegroups.com...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top