Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default help converting text to range object

I have a cell range identifier masquerading as a text entry in a cell
(e.g.,the cell at G19 contains the text "D14:F20"). Within my macro, I
want to grab that D14:F20 text string, convert it into a range
reference, and use that range reference within the macro. I can't
figure out how to make the text-to-range conversion.

Another question along the same lines: I have a single cell (e.g. B4)
and I want the text within that cell to echo its location (e.g., "B4")
such that if the cell is moved elsewhere the text revises appropriately
(e.g., if the cell moves from B4 to F9, the text within changes to "F9"
too).

(Using Mac Excel 2001.)

Relative newbie to this -- help(s) appreciated.

- Jim



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 111
Default help converting text to range object

Put that string inside of the range object like the following

Range(Range("G19").Value)

NOTE: You may have to prequalify the Range Objects above. If left the way
it is, it will refer to the ActiveWorksheet within the ActiveWorkbook.

--
Ronald R. Dodge, Jr.
Production Statistician
Master MOUS 2000
"jimredfield" wrote in message
...
I have a cell range identifier masquerading as a text entry in a cell
(e.g.,the cell at G19 contains the text "D14:F20"). Within my macro, I
want to grab that D14:F20 text string, convert it into a range
reference, and use that range reference within the macro. I can't
figure out how to make the text-to-range conversion.

Another question along the same lines: I have a single cell (e.g. B4)
and I want the text within that cell to echo its location (e.g., "B4")
such that if the cell is moved elsewhere the text revises appropriately
(e.g., if the cell moves from B4 to F9, the text within changes to "F9"
too).

(Using Mac Excel 2001.)

Relative newbie to this -- help(s) appreciated.

- Jim



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default help converting text to range object

assume it contains D14:F20 and not "D14:F20"
msgbox Range(Range("G19").Value).Address

=address(row(),Column(),4)

--
Regards,
Tom Ogilvy

"jimredfield" wrote in message
...
I have a cell range identifier masquerading as a text entry in a cell
(e.g.,the cell at G19 contains the text "D14:F20"). Within my macro, I
want to grab that D14:F20 text string, convert it into a range
reference, and use that range reference within the macro. I can't
figure out how to make the text-to-range conversion.

Another question along the same lines: I have a single cell (e.g. B4)
and I want the text within that cell to echo its location (e.g., "B4")
such that if the cell is moved elsewhere the text revises appropriately
(e.g., if the cell moves from B4 to F9, the text within changes to "F9"
too).

(Using Mac Excel 2001.)

Relative newbie to this -- help(s) appreciated.

- Jim



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default help converting text to range object

Ronald / Tom - Tnx for the help on both questions. - Jim



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

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
Converting a range of Excel 2003 Cells to a Single text string JR2008 Excel Discussion (Misc queries) 2 July 7th 08 12:50 AM
Converting hyperlink picture object to hyerlink text [email protected] Excel Discussion (Misc queries) 0 October 4th 05 09:53 AM
Range object to Array object conversion Myrna Larson[_2_] Excel Programming 1 August 1st 03 02:27 AM
Range object to Array object conversion Alan Beban[_3_] Excel Programming 0 August 1st 03 01:24 AM
Range object to Array object conversion Tom Ogilvy Excel Programming 0 August 1st 03 12:16 AM


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