+ Reply to Thread
Results 1 to 2 of 2

Thread: I can't convert text to a cell address

  1. #1
    Valued Forum Contributor
    Join Date
    02-21-2010
    Location
    Gotemba, Shizuoka, Japan
    MS-Off Ver
    Excel 2007
    Posts
    283

    I can't convert text to a cell address

    Below is my problem

    Assume cell A1 contains a name and A2 contains the text "D7".

    How would the code look like that
    1. reads the contense in cell A2 (which is D7),
    2. converts it (D7) to a cell address and finally
    3. copies the content in cell A1 to the cell address found in A2 (in this case D7)

    To illustrate I attached an Excel file.
    Attached Files Attached Files
    Last edited by dschmitt; 03-12-2010 at 02:18 AM.

  2. #2
    Forum Moderator Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2007
    Posts
    5,953

    Re: I can't convert text to a cell address

    Hi Dschmitt, you can try:

    Range(Range("B1").Value).Value = Range("A1").Value

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0