Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Using cell contents ae address

I have 2 colums that contain a value in the first column
and an address in the cells of the second column. The
address is in R1C1 format. I want to write VB/excel macro
that reads the contents of the address cell, goes to that
address and pastes the associated value in the new cell.
How do I do this?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Using cell contents ae address

Assume data to be copie is in column a and R1C1 formatted addresses are
strings in Column B (rows 1 to 200)
for each cell in Range("B1:B200")
sVal = cell.Text
cell.FormulaR1C1 = "=" & sVal
set rng = cell.DirectDependents
rng.value = cell.offset(0,-1).Value
cell.Value = sVal
Next

--
Regards,
Tom Ogilvy


"Roger" wrote in message
...
I have 2 colums that contain a value in the first column
and an address in the cells of the second column. The
address is in R1C1 format. I want to write VB/excel macro
that reads the contents of the address cell, goes to that
address and pastes the associated value in the new cell.
How do I do this?



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
insert contents of variable cell address Charlie@ParkViewTerrace Excel Discussion (Misc queries) 1 June 30th 09 11:28 PM
Using the contents of a ADDRESS formula as the cell range in a for Rose Excel Discussion (Misc queries) 3 March 14th 09 04:27 AM
Insert Cell Contents in middle of web address Jetheat Excel Discussion (Misc queries) 2 March 5th 06 07:18 PM
How do I use cell contents as an address in a formula tomeck Excel Worksheet Functions 1 December 20th 05 05:46 PM
How do I find the contents of a cell using the "ADDRESS" function. sweeney Excel Worksheet Functions 2 April 5th 05 03:23 AM


All times are GMT +1. The time now is 05:16 AM.

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"