Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 576
Default Fixing table array in vlookup?

Chris,

2 things - you can skip the auto fill by using
Range("B1:B626").FormulaR1C1=

Second - just replace [1] & [25555] with numbers (the brackets are the same
as removing the $ symbols and make the references relative instead of
absolute)
I think in your case that would be
R2C1:R25556C2

If the rows and columns are not predetermined, than set new variables for
them.

The CONTATENATE part confuses me.

steve

"Chris H" wrote in message
...
Hello,

I have this code within a VBA macro:

ActiveCell.FormulaR1C1 = _
"=VLOOKUP(CONCATENATE(" & i & ",""_"",RC[-1]),'in
data'!R[1]C[-1]:R[2555]C,2,FALSE)"

Selection.AutoFill Destination:=Range("B1:B626"),
Type:=xlFillDefault

How do I fix the table array ('in data'!R[1]C[-1]:R[2555]C)
to remain constant during the AutoFill? (In a formula the
row and column references would be preceded with $).

Many thanks

Chris




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 Using a Reference as a Table Array EmJa Excel Worksheet Functions 1 April 21st 09 04:58 PM
Vlookup-table array runs? chili Excel Worksheet Functions 2 October 2nd 08 09:24 PM
array table and vlookup DV Excel Worksheet Functions 7 October 25th 07 04:09 PM
vlookup - can't pick up table array Tariq Excel Worksheet Functions 1 August 24th 07 12:22 PM
VLOOKUP - 3 Table Array tangomj Excel Worksheet Functions 1 August 1st 06 05:43 PM


All times are GMT +1. The time now is 11:42 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"