Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,549
Default Help With VLOOKUP VBA Script Line

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"
wrote in message
...
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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VB script line graph Kalyan Excel Programming 1 June 1st 09 01:45 PM
Passing Data to a Line in a VBA Script Danny Young Excel Programming 1 October 12th 06 06:14 AM
Need Comand line or VB Script Chris Excel Programming 1 October 11th 06 02:11 AM
command line Excel Script [email protected] Excel Discussion (Misc queries) 0 August 22nd 06 01:23 PM
which line mercy script nastech Excel Discussion (Misc queries) 6 February 5th 06 04:46 PM


All times are GMT +1. The time now is 11:33 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"