Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default VLookup problem

A sheet named "Prices" contains my Lookup_value. It always be in row 3 from columns C:CQ
A sheet named "Today" contains my Table_array (cellsA1:B100).
The Column_index_num is 2.
Range_lookup is "False".

For the active row in "Prices" (row number is changed daily)
I've been trying to add macro lines that will paste a formula into the columns of the active row

Sheets("Prices").Select
ActiveCell.Offset(0, 2).Range("A1").Select
ActiveCell.FormulaR1C1 = "=VLOOKUP(Lookup_Value,Table_array,FALSE,2)"
Selection.Copy
ActiveCell.Offset(0, 1).Range("A1:AZ1").Select
Selection.PasteSpecial Paste:=xlPasteFormulas, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False

I'm having trouble getting the proper references for the formula code in the macro for Lookup_Value and Table_array.
Again the Lookup_value is on "Prices" in row 3 of the column while the Table_array is always on "Today" (cellsA1:B100).

Thanks
Al
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
Vlookup problem karen fredericks Excel Worksheet Functions 1 June 8th 11 11:21 PM
Vlookup problem Bruister via OfficeKB.com Excel Discussion (Misc queries) 0 October 16th 09 09:29 AM
Vlookup problem Vijay Kotian Excel Discussion (Misc queries) 1 March 28th 09 05:42 AM
vlookup problem Robbyn Excel Worksheet Functions 10 August 6th 07 02:49 AM
VLOOKUP Problem ROBERT LANGLEY Excel Programming 2 January 19th 04 04:24 PM


All times are GMT +1. The time now is 10:05 PM.

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

About Us

"It's about Microsoft Excel"