+ Reply to Thread
Results 1 to 9 of 9

Hovering over cells to show a date

  1. #1
    Registered User
    Join Date
    10-13-2009
    Location
    Wigan
    MS-Off Ver
    Excel 2007
    Posts
    14

    Hovering over cells to show a date

    Hello. Could someone please help.

    Firstly, I am using Excel 2007.

    The purpose of my sheet is a timetable.

    What I have is a sheet from B2 to N32. What I would like to do is to be able to hover over a cell to show a date.

    I have columns that represent the months, column B is January, coulmn C is February, column D is March, etc, etc. Right up to December in column M.
    Row 2 represents the 1st of the month, row 3 is the 2nd, etc, etc, down to the 31st of a month.

    What I would like to do is when I hover over, for example, cell B2, I would like a box to pop up to say something like, ' What would like to do on the 1st of January??', then maybe hover over H7 and then a box appears saying, ' What would like to do on the 6th of July??'

    I would like this to happen on all cells on the sheet.

    Is this possible via VB?? Thank you for reading.

    Chris
    Last edited by cjboydell; 01-06-2010 at 08:23 AM.

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Hovering over cells to show a date

    You can do this by adding Comments to the cells and avoid VBA.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: Hovering over cells to show a date

    To add comments as you describe by VBA,


    Please Login or Register  to view this content.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  4. #4
    Registered User
    Join Date
    10-13-2009
    Location
    Wigan
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Hovering over cells to show a date

    Thank you for your reply.

    To be honest, I am also using the 'Data Validation' option where I get a little message popping up saying 'What am I doing today??' when I click individual cells. I want it say that, but with the corresponding date for the cell, for example, 'What am I doing today on January 1st??' or something like that when I click other cells.

    If I use the 'comments' option, I will get two text boxes. One from the 'Data Validation' that I use, and one from the comment

    I would just prefer the one

  5. #5
    Registered User
    Join Date
    10-13-2009
    Location
    Wigan
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Hovering over cells to show a date

    Sorry about that. The reply was for DOMSKI.
    I will try your VB code , Sweep.

  6. #6
    Registered User
    Join Date
    10-13-2009
    Location
    Wigan
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Hovering over cells to show a date

    Hi Sweep.

    Unfortunately, nothing seems to be happening to the sheet once I add the VB code.
    I click on the individual cells but no text boxes or anything like that appear.

  7. #7
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: Hovering over cells to show a date

    It works for me. Can you post your sheet? Does the VBA generate an error when run?

  8. #8
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Hovering over cells to show a date

    There isn't a VBA event that I'm aware of that will recognise when you move the cursor over a particular cell so I think you would be stuck with either comments or the data validation message.

    This would add comments to each cell in B2:M32 picking up the info from Row 1 and Column A respectively:

    Please Login or Register  to view this content.
    Edit: better late than never, boss wanted to chat.

    Hope it helps,

    Dom

  9. #9
    Registered User
    Join Date
    10-13-2009
    Location
    Wigan
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Hovering over cells to show a date

    Ok.
    Thank you very much to Domski and Sweep.

    It's not exactly what I wanted but its close enough. I would have prefered a box which appears like a 'Data Validation' box, but not as a comment (little red markers on every cell)

    Anyway, it does what I need it to do.

    I'll mark it as solved.

+ 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