+ Reply to Thread
Results 1 to 11 of 11

Best way to display text from another field in spreasheet as a comment on hover

  1. #1
    Registered User
    Join Date
    12-02-2011
    Location
    Coventry, England
    MS-Off Ver
    Excel 2010
    Posts
    47

    Best way to display text from another field in spreasheet as a comment on hover

    I'm not sure if I will explain this properly but I am not sure if this is the best way to do this. I have been asked to create a dashboard of a calendar for data relating to two different types by day.

    Attached is a spreadsheet showing part of the problem. There is a spreadsheet called "Calendar Overview" that is being used as part of a dashboard to highlight the calendar items listed in worksheet "Admin".

    In "Admin" the user selects a day and adds a data type from the drop down values of ;
    Off work
    Other
    Performance Targetted Key Competition
    Squad Training
    Training period

    And then adds a comment in the appropriate row in column E

    I would love the user to be able to hover or click in the Dashboard spreadsheet " Calendar Overview" in a day and they see the corresponding comment.

    For example if in the "Calendar Overview" spreadsheet I clicked on cell C4 - I would love the user to see the comment from the worksheet "Admin" E2.

    I have searched to see if it is possible to allow the user to hover and found that I can add code to the worksheet activate call. But I am struggling with it as I am looking across at values and not down as many of the examples have shown.

    Any help in the right direction would be greatly appreciated. I'm not even sure if there is a better way to do it as I have racked my brain and got a lot of mush.


    Many thanks
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    12-02-2011
    Location
    Coventry, England
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Best way to display text from another field in spreasheet as a comment on hover

    I found this piece of code which will look at a list of cells from row 1 to 10 in Sheet1 and take the corresponding text in Sheet2 . It works beautifully.

    Please Login or Register  to view this content.
    I'm struggling to adapt it as it needs to go across and not down if that makes sense. I was wondering if someone could advise if it would be possible.

    Many thanks

  3. #3
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Best way to display text from another field in spreasheet as a comment on hover

    see attached

    your references cells(i,1) are in the order of (Row,Column) just switch so column is changed not row
    Attached Files Attached Files

  4. #4
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Best way to display text from another field in spreasheet as a comment on hover

    Please Login or Register  to view this content.
    Hi, This will start you in the right direction. You will have to combine with index match for the Overview Sheet to change comments for each month. I dont know also is it possible to display a comment without the red corner tag. Too many of them and the sheet looks cluttered

  5. #5
    Registered User
    Join Date
    12-02-2011
    Location
    Coventry, England
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Best way to display text from another field in spreasheet as a comment on hover

    Thank you so much I will look at it. Very grateful for all your help. Its a bit of a huge task Ive been asked to do and I think its beyond me but I like a challenge so will plug away....

  6. #6
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Best way to display text from another field in spreasheet as a comment on hover

    Ill have a look at this evening and see if I can find a solution that does not require a worksheet for each month

  7. #7
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Best way to display text from another field in spreasheet as a comment on hover

    Hi jancliff

    All the rest of the Calendar overview worksheet is an index/match of the Calendar Admin 2019 worksheet so will automatically update. I added the comment add to a button as worksheet activate would slow down everything, probable best called on workbook open

    See if the attachment gets you any further down the line.

    I couldn't find a way to get rid of the message indicators but found ways to recolour them. What I was trying for was that the indicator colour matched the cell colour. I'll keep looking into that

    If this is the way you want to go you might start a separate thread to see if the comments can be loaded from an array. This is a slow method of loading the comments
    Attached Files Attached Files
    Last edited by nigelog; 09-27-2018 at 08:25 AM.

  8. #8
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Best way to display text from another field in spreasheet as a comment on hover

    Finally sorted a sub 3 second method of updating comments on calendar overview
    Please Login or Register  to view this content.
    Attached Files Attached Files

  9. #9
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,907

    Re: Best way to display text from another field in spreasheet as a comment on hover

    You could add this function in a new module:

    Please Login or Register  to view this content.
    then in your calendar cells, call the function and pass the cell whose value you want, plus the cell whose comment you want. For example, in C4, you'd enter:

    =getdata('Admin 2019 Calendar'!D2, 'Admin 2019 Calendar'!E2)
    Rory

  10. #10
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Best way to display text from another field in spreasheet as a comment on hover

    Sounds interesting Rory - but this was an exercise I got stuck on. Think I'll leave well alone LOL

  11. #11
    Registered User
    Join Date
    12-02-2011
    Location
    Coventry, England
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Best way to display text from another field in spreasheet as a comment on hover

    Tank you both so much for all your help. I will look through and see if I can understand it fully. Very very Grateful....

+ 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: 20
    Last Post: 09-11-2018, 02:22 PM
  2. Comment Hover Over Status Bar
    By JimmyA in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-22-2015, 09:08 PM
  3. Hover over Comment not working?
    By billybea in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-21-2015, 11:15 AM
  4. Pop Up Comment When Hover Over Item in List
    By Alderaan Shot First in forum Excel General
    Replies: 2
    Last Post: 01-06-2015, 07:17 PM
  5. Mouse Hover over a shape or picture and will display a text message
    By BI Guy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-18-2014, 10:17 AM
  6. Showing Roll-Over/Hover Text As Display Text
    By Eric Excels in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 08-31-2011, 09:57 PM
  7. Comment not displaying on hover
    By indiana_ahmed in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-23-2010, 03:34 PM

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