Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 267
Default mouse pointer over cell

Can I make the contents of a variable cell (an offset cell depending on the
current date) appear when the mouse pointer hovers over a cell.
Have tried using a comment box but this seems only to display the data
directly entered and will not accept a function such as "=offset (c,0)" I
knew perfectly well it wouldnt work but tried it anyway! Why do I do that??
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default mouse pointer over cell

Hi,

As far as I'm aware there's no mouse_over event in excel but here's a messy
workaround that does what you want when the cell is selected.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Intersect(Target, Range("A1:A100")) Is Nothing Then
Range("A1:A100").ClearComments
If Target.Offset(, 3).Text < "" Then
Target.AddComment
Target.Comment.Text Text:=Target.Offset(, 3).Text
End If
End If
End Sub

Mike

"Atishoo" wrote:

Can I make the contents of a variable cell (an offset cell depending on the
current date) appear when the mouse pointer hovers over a cell.
Have tried using a comment box but this seems only to display the data
directly entered and will not accept a function such as "=offset (c,0)" I
knew perfectly well it wouldnt work but tried it anyway! Why do I do that??

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
mouse pointer Atishoo Excel Discussion (Misc queries) 2 June 16th 08 04:25 PM
setting of pointer of mouse BHUSHAN Excel Discussion (Misc queries) 2 October 10th 07 11:07 PM
mouse pointer robnsd Excel Discussion (Misc queries) 2 April 20th 07 10:17 PM
my mouse pointer locks on a cell in excel teach3's Excel Worksheet Functions 4 October 23rd 06 11:02 PM
mouse pointer cross doesn't appear maneng Excel Discussion (Misc queries) 1 July 20th 06 12:33 PM


All times are GMT +1. The time now is 09:31 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"