Thread: Hover Messages
View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Peter T Peter T is offline
external usenet poster
 
Posts: 5,600
Default Hover Messages

Have you considered using Data Validation / List in all your input cells,
where the list refers to your codes (could be a ref or a named range).

In the next column you could have a lookup formula that returns the
description based on the code in the input cell (or blank if code cell is
empty).

Regards,
Peter T


"Phil H." wrote in message
...
Thanks, Pete - not encouraging at this point. "Normal" users will not be
able to remember 365 codes. Can you think of another way to approach to
the
problem? Could a lookup be used somehow? Or maybe a dropdown in the
header
row?
"Peter T" wrote:

Tricky, not impossible but effectively not viable.

There are no directly trappable mouse over or hover events in cells.
Using a
timer could periodically check mouse coordinates every (say) 0.2 sec' and
if
same conclude the mouse is stationary (could sub class windows mouse
events
but not stable in VBA).

Having determined the mouse is not moving next task is to relate mouse
coordinates to cell, it is doable with one of three distinct approaches
(not
sure about xl2007) but none are straightforward.

Then the final task is to display something like a tooltip, rather than a
form or some other object. I'm almost sure there is no way to do that
purely
with VBA.

Of course, could do almost anything in a selection change event (except
the
tool tip, temporary dynamic comment perhaps).

Regards,
Peter T


"Phil H." wrote in message
...
MS Excel 2003, Workbook name "2008 Results."

In worksheet named "Inventory," Column M has alpha-numeric codes - the
worksheet contains 8000+ rows.

In worksheet named "Function Codes," 365 a-n codes are held in column
B,
with their corresponding text descriptions in column C.

What is needed: when the user hovers the cursor over a cell in
"Inventory"
column M, Excel finds the a-n code in worksheet "Function Codes" column
B,
and displays the corresponding text from column C the same way as in a
hyperlink "Screen Tip."

Finally, the user must be able to click on a column M cell, make an a-n
code
change, and the new text description appear when hovering over the
changed
cell (after the correction has been entered).

What would the macro code be and where would it be placed?