Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default 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   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default 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
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
There is no row at position 0 Catbean Excel Discussion (Misc queries) 1 November 21st 08 11:24 PM
my mouse moves diagonally when i scroll on mouse? BKMISHRA Excel Worksheet Functions 0 June 29th 05 11:43 AM
moving mouse highlights cells without touching left mouse button bremboy Excel Discussion (Misc queries) 2 January 27th 05 06:19 PM
position mouse cursor in msg box swatsp0p[_2_] Excel Programming 2 September 24th 04 07:12 AM
Determining chart points at mouse position Steve Excel Programming 2 May 30th 04 03:46 AM


All times are GMT +1. The time now is 10:24 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"