Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Mouse Position
Hi all,
I'm trying to run a code when the mouse pointer comes on a specific range on, for example, Sheet1. Im trying to run a little macro which shows a toolbar, when the cursor is on the X, Y ranges of the standard toolbar (when the cursor moves over the toolbar's position, while the toolbar is not visible, it makes it visible). Does anyone know how to do this? Thanks in advance Max |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Mouse Position
Hi
not really possible as there's no event which return the X/Y position on a spreadsheet. So you'll have to use Windows aPI functions and CALCULATE the mouse position on your spreadsheet -- Regards Frank Kabel Frankfurt, Germany "Max Potters" schrieb im Newsbeitrag ... Hi all, I'm trying to run a code when the mouse pointer comes on a specific range on, for example, Sheet1. Im trying to run a little macro which shows a toolbar, when the cursor is on the X, Y ranges of the standard toolbar (when the cursor moves over the toolbar's position, while the toolbar is not visible, it makes it visible). Does anyone know how to do this? Thanks in advance Max |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Mouse Position
Max,
Take a look at the RangeFromPoint method in help. -- HTH RP "Max Potters" wrote in message ... Hi all, I'm trying to run a code when the mouse pointer comes on a specific range on, for example, Sheet1. Im trying to run a little macro which shows a toolbar, when the cursor is on the X, Y ranges of the standard toolbar (when the cursor moves over the toolbar's position, while the toolbar is not visible, it makes it visible). Does anyone know how to do this? Thanks in advance Max |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Mouse Position
hi,
not really possible to do that. but you might be able to play tricks. Put a label control on the range somewhere. you can then use the label controls mouse move event. -----Original Message----- Hi all, I'm trying to run a code when the mouse pointer comes on a specific range on, for example, Sheet1. Im trying to run a little macro which shows a toolbar, when the cursor is on the X, Y ranges of the standard toolbar (when the cursor moves over the toolbar's position, while the toolbar is not visible, it makes it visible). Does anyone know how to do this? Thanks in advance Max . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
There is no row at position 0 | Excel Discussion (Misc queries) | |||
my mouse moves diagonally when i scroll on mouse? | Excel Worksheet Functions | |||
moving mouse highlights cells without touching left mouse button | Excel Discussion (Misc queries) | |||
position mouse cursor in msg box | Excel Programming | |||
Determining chart points at mouse position | Excel Programming |