Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Identifying value in a cell knowing R1C1 naming

I am using a worksheet change event and am getting row and column data from
the target value. What I want to do is get the value that is in the
following location and ultimately use it in A VLOOKUP. What am I doing
wrong?

Set Value.address = "R" & Target.Row & "C" & (Target.Column + 1))

This value will be used as a constant in an

Application.WorksheetFunction.VLookup() function


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Identifying value in a cell knowing R1C1 naming

Check your previous thread.

Barb Reinhardt wrote:

I am using a worksheet change event and am getting row and column data from
the target value. What I want to do is get the value that is in the
following location and ultimately use it in A VLOOKUP. What am I doing
wrong?

Set Value.address = "R" & Target.Row & "C" & (Target.Column + 1))

This value will be used as a constant in an

Application.WorksheetFunction.VLookup() function



--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 129
Default Identifying value in a cell knowing R1C1 naming

How about

Dim MyValue
MyValue = Cells(Target.Row, Target.Column).Value


Barb Reinhardt wrote:
I am using a worksheet change event and am getting row and column data from
the target value. What I want to do is get the value that is in the
following location and ultimately use it in A VLOOKUP. What am I doing
wrong?

Set Value.address = "R" & Target.Row & "C" & (Target.Column + 1))

This value will be used as a constant in an

Application.WorksheetFunction.VLookup() function


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Identifying value in a cell knowing R1C1 naming

Barb,

Target.Offset(0,1).Value

is the value to the right of the changed cell (unless target is multicell, in which case this will
blow up....)

myVal = Application.VLookup(Target.Offset(0,1).Value,Range ("A1:B100"),2,False)

will use that value in a VLookup....

HTH,
Bernie
MS Excel MVP


"Barb Reinhardt" wrote in message
...
I am using a worksheet change event and am getting row and column data from
the target value. What I want to do is get the value that is in the
following location and ultimately use it in A VLOOKUP. What am I doing
wrong?

Set Value.address = "R" & Target.Row & "C" & (Target.Column + 1))

This value will be used as a constant in an

Application.WorksheetFunction.VLookup() function




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
how do I change cell labelling from R1C1 to A1? agua Excel Discussion (Misc queries) 2 November 19th 07 09:14 PM
How do I change default cell reference from 'R1C1' to 'A1'? jeradavis Setting up and Configuration of Excel 1 August 1st 07 04:55 PM
Using a cell value for row in R1C1 Rob T Excel Worksheet Functions 2 November 2nd 05 03:47 PM
How to make R1C1 nomenclature work with SUM() in a cell ? [email protected] Excel Programming 9 December 16th 04 01:52 PM
Getting the value from a cell, and then using it as a name or R1C1 reference Art Excel Programming 1 April 30th 04 07:48 AM


All times are GMT +1. The time now is 02:23 AM.

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"