+ Reply to Thread
Results 1 to 10 of 10

how to display contents of cell A2 if A3 becomes activated

  1. #1
    Valued Forum Contributor luv2glyd's Avatar
    Join Date
    07-13-2008
    Location
    Seattle, WA, US
    MS-Off Ver
    Excel 2010
    Posts
    679

    how to display contents of cell A2 if A3 becomes activated

    If I have some text that cell A2 contains, is it possible once I scroll to cell A3 to show the contents of A2 in cell A4, then after scrolling away to some other cell, not display anything in cell A4?

    Thank you.
    Last edited by luv2glyd; 07-01-2010 at 07:35 PM.
    You either quit or become really good at it. There are no other choices.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,485

    Re: how to display contents of cell A2 if A3 becomes activated

    This appears to work.

    Please Login or Register  to view this content.
    Last edited by davesexcel; 07-01-2010 at 04:59 PM.

  3. #3
    Valued Forum Contributor luv2glyd's Avatar
    Join Date
    07-13-2008
    Location
    Seattle, WA, US
    MS-Off Ver
    Excel 2010
    Posts
    679

    Re: how to display contents of cell A2 if A3 becomes activated

    Perfect! Thank you.

    I actualy have a long row of these. What do you think would be the simplest way to write the code for this?

    So for example, if I have cells A2:X2 that contain different text, and I wanted to show contents of A2 if A3 is activated in A4, contents of B2 if B3 is activated in B4, contents of F2 if F3 is activated in F4, and so on. Same thing as before, just a number of cells in a row.

    Thank you.

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,485

    Re: how to display contents of cell A2 if A3 becomes activated

    See the Edited Code, see if it works for you

  5. #5
    Valued Forum Contributor luv2glyd's Avatar
    Join Date
    07-13-2008
    Location
    Seattle, WA, US
    MS-Off Ver
    Excel 2010
    Posts
    679

    Re: how to display contents of cell A2 if A3 becomes activated

    Cool, that works. I was looking for the contents to be shown one by one, though, so that once you scroll to the right/left of a particular cell, the contents get elliminated in the cell that you scrolled away from. In other words - show the contents one by one. Right now if I scroll to the right/left, I see the contents that appeared reamain "appeared".......

  6. #6
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,485

    Re: how to display contents of cell A2 if A3 becomes activated

    I know.....I can't think of what to do about it since row 3 is the target row

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: how to display contents of cell A2 if A3 becomes activated

    Maybe ...
    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  8. #8
    Valued Forum Contributor luv2glyd's Avatar
    Join Date
    07-13-2008
    Location
    Seattle, WA, US
    MS-Off Ver
    Excel 2010
    Posts
    679

    Re: how to display contents of cell A2 if A3 becomes activated

    OK, that works well. Thank you. For some reason, with either code, the paste function becomes disabled. If I was to highlite any cell and copy it, then scroll to another cell and try to paste it, I'm not able to do it. Any way around that with this?

  9. #9
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: how to display contents of cell A2 if A3 becomes activated

    Also flushes the undo buffer -- things that should make you reluctant to use VBA unless you really need it.

  10. #10
    Valued Forum Contributor luv2glyd's Avatar
    Join Date
    07-13-2008
    Location
    Seattle, WA, US
    MS-Off Ver
    Excel 2010
    Posts
    679

    Re: how to display contents of cell A2 if A3 becomes activated

    Right, no big deal in this case. This will work for what I'm trying to do. Thank you both.

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