+ Reply to Thread
Results 1 to 7 of 7

Paste using reference in another cell

  1. #1
    Registered User
    Join Date
    02-14-2012
    Location
    Alexandria, Egypt
    MS-Off Ver
    Excel 2007
    Posts
    7

    Angry Paste using reference in another cell

    Hi,...

    Simply i want to select the cell referred to in cell a3.
    lets say z4 is typed in cell a3 so i want a code to automatically select z4 through cell a3
    Last edited by a.sharaf; 02-16-2012 at 04:04 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Paste using reference in another cell

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Valued Forum Contributor
    Join Date
    12-05-2011
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010 & 2013
    Posts
    308

    Re: Paste using reference in another cell

    You could incorporate this in to a Worksheet_Change macro, so it happens every time a value is changed on the worksheet.

  4. #4
    Registered User
    Join Date
    02-14-2012
    Location
    Alexandria, Egypt
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Paste using reference in another cell

    thanks for the help but its not working i need a code to say range("af8").value.select which is z4

  5. #5
    Valued Forum Contributor
    Join Date
    12-05-2011
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010 & 2013
    Posts
    308

    Re: Paste using reference in another cell

    Try this:
    Please Login or Register  to view this content.
    BTW, if your intention is to copy the contents of this cell (given your thread title), you don't need to select it. You can simply use:
    Please Login or Register  to view this content.
    If your intention is to paste in to that cell, then swap the code around:
    Please Login or Register  to view this content.
    Regards, Rob.
    Last edited by rscsmith; 02-15-2012 at 05:55 PM.

  6. #6
    Registered User
    Join Date
    02-14-2012
    Location
    Alexandria, Egypt
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Paste using reference in another cell

    thank you very much it worked and u saved my ***..

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Paste using reference in another cell

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.6.0 RC 1