+ Reply to Thread
Results 1 to 6 of 6

Hover over cell displays data from two cells on a different sheet

  1. #1
    Registered User
    Join Date
    08-15-2013
    Location
    Kitchener, ON
    MS-Off Ver
    Excel 2010
    Posts
    3

    Cool Hover over cell displays data from two cells on a different sheet

    Newbie here:

    I would like to hover over a cell and display a pop-up containing the data from two other cells on a different sheet within the same workbook. I could post a sample of a workbook I'm working on if necessary.

    Thanx!

  2. #2
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Hover over cell displays data from two cells on a different sheet

    Since no one has posted, I'll say this:
    It is possible, but it is very hard to create and to maintain. It would require a special handling of each cell and some VBA. The technique is more of a hack than a method Microsoft tried to make accessible to users.
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

  3. #3
    Registered User
    Join Date
    08-15-2013
    Location
    Kitchener, ON
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Hover over cell displays data from two cells on a different sheet

    Some VBA and maintenance isn't scary to me. I found this: http://excel.tips.net/T003374_Placin...a_Comment.html but it tries to add the data and my data is text.

    Can you provide any more details or point the way for me?

  4. #4
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Hover over cell displays data from two cells on a different sheet

    Okay, when I saw 'Newbie' I thought it was a newbie to Excel not this forum. Here is an example file. I used conditional formatting for the red, but it could also be put in the macro. For your issue, you would use the same HYPERTEXT and macro technique, except the 'Friendly Text' attribute would be the value in the cell you want to display - probably use a separate column with the HYPERTEXT referencing your current values.
    The VBA would need to be passed an identifier on which cell you are hovering over - maybe ROW() and COLUMN()? With that info, grab the data from the other sheet and put it in a text box which is displayed while they hover.
    Some pointers:
    - Apparently you can't use a comment for this to work. The comment 'interferes' with the macro call, so you lose your hover detection.
    - You probably need to 'ring' your data with the same HYPERLINK trick, so that your macro is called to remove the text box when the user is no longer in your desired 'hot zone'. Otherwise, the text box will stay there until they hover over another hot cell. I used this technique to erase the text - the red cells (when hovering) are my ring.
    - The response time is a little slow. So, if the user moves their mouse quickly, the macro may not fire. Worst case is that the text box stays visible.

    Thanks for the rep bump for telling you something was tricky. Hopefully this example file is worth that 'point'.
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Hover over cell displays data from two cells on a different sheet

    I just looked at your link. Let me say that the technique in that link would work if your data does not change. I assumed the data in the separate sheet is modifiable, hence the need for a macro to be fired when you hover. If your data is static, then you can use the weblink's macros to generate a bunch of comments with the data you want.
    When you say:
    but it tries to add the data and my data is text
    that is okay. In fact, the comment wants text, and his first example has text in it

    He does show a method with Worksheet_Change, and that is an alternative solution. I try to avoid using that type of approach since the macro is called for EVERY worksheet change and it can mess up your UNDO if you are not careful. But, it may be a better and easier to maintain solution than what I provided.

  6. #6
    Registered User
    Join Date
    08-15-2013
    Location
    Kitchener, ON
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Hover over cell displays data from two cells on a different sheet

    You are awesome - thanks for taking the time Paulyb!!

    PS - I'm not sure but I want to make sure you get the credit deserved. Did you get the bump up OK? Thank you thank you thank you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 01-19-2013, 09:13 AM
  2. Produce data from two corrosponding Cells but displays only certain codes
    By Chrissy1818 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-22-2012, 12:17 AM
  3. Hover Text disappears as you scroll down sheet
    By chuckman4112 in forum Excel General
    Replies: 5
    Last Post: 03-06-2011, 01:34 PM
  4. [SOLVED] Setting hover data labels to cells other than source data
    By Darren in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-24-2006, 06:25 AM
  5. Replies: 0
    Last Post: 01-24-2006, 04:35 AM

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