Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.vb.winapi,microsoft.public.win32.programmer.ui
external usenet poster
 
Posts: 22
Default Mouse Location, Movement and Spreadsheet Location

Hello All,

Here is what I am trying to do:

From within Excel, as the user moves the mouse over certain cells, I wish to
display certain information.

I am very familiar with Excel's spreadsheet selection events and these are
not appropriate. It will not be based upon selections.

I am also familiar with the GetCursorPos API. The problem is that when I
try to use this against a cell location, the cell positioning is according
to its location within the Excel window whereas the GetCursorPos is against
the entire screen.

I know that this can be done because as one moves the mouse over cells
within a spreadsheet, the mouse icon changes accordingly. This is native
Excel functionality and is exactly what I am trying to emulate.

Does anyone have any idea how to detect which cell(s) the mouse is moving
over at any given time from within Excel?

Thanks & Regards,

Todd


  #2   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.vb.winapi,microsoft.public.win32.programmer.ui
external usenet poster
 
Posts: 27,285
Default Mouse Location, Movement and Spreadsheet Location

someone posted this in answer to a similar requirement:

http://www.mrexcel.com/board2/viewto...mouse+location

--
Regards,
Tom Ogilvy


"TCook" wrote in message
...
Hello All,

Here is what I am trying to do:

From within Excel, as the user moves the mouse over certain cells, I wish

to
display certain information.

I am very familiar with Excel's spreadsheet selection events and these are
not appropriate. It will not be based upon selections.

I am also familiar with the GetCursorPos API. The problem is that when I
try to use this against a cell location, the cell positioning is according
to its location within the Excel window whereas the GetCursorPos is

against
the entire screen.

I know that this can be done because as one moves the mouse over cells
within a spreadsheet, the mouse icon changes accordingly. This is native
Excel functionality and is exactly what I am trying to emulate.

Does anyone have any idea how to detect which cell(s) the mouse is moving
over at any given time from within Excel?

Thanks & Regards,

Todd




  #3   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.vb.winapi,microsoft.public.win32.programmer.ui
external usenet poster
 
Posts: 22
Default Mouse Location, Movement and Spreadsheet Location

Hey Tom,

Thanks for the info.

Regards,

Todd


"Tom Ogilvy" wrote in message
...
someone posted this in answer to a similar requirement:

http://www.mrexcel.com/board2/viewto...mouse+location

--
Regards,
Tom Ogilvy


"TCook" wrote in message
...
Hello All,

Here is what I am trying to do:

From within Excel, as the user moves the mouse over certain cells, I wish

to
display certain information.

I am very familiar with Excel's spreadsheet selection events and these
are
not appropriate. It will not be based upon selections.

I am also familiar with the GetCursorPos API. The problem is that when I
try to use this against a cell location, the cell positioning is
according
to its location within the Excel window whereas the GetCursorPos is

against
the entire screen.

I know that this can be done because as one moves the mouse over cells
within a spreadsheet, the mouse icon changes accordingly. This is native
Excel functionality and is exactly what I am trying to emulate.

Does anyone have any idea how to detect which cell(s) the mouse is moving
over at any given time from within Excel?

Thanks & Regards,

Todd






  #4   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.vb.winapi,microsoft.public.win32.programmer.ui
external usenet poster
 
Posts: 2
Default Mouse Location, Movement and Spreadsheet Location

The sample uses SetWindowsHookEx() with WH_MOUSE_LL hook, which requires
Windows NT4/2000/XP+, use WH_MOUSE or any other suitable one instead.

http://msdn.microsoft.com/library/de...dowshookex.asp



"Tom Ogilvy" wrote in message
...
someone posted this in answer to a similar requirement:

http://www.mrexcel.com/board2/viewto...mouse+location

--
Regards,
Tom Ogilvy


"TCook" wrote in message
...
Hello All,

Here is what I am trying to do:

From within Excel, as the user moves the mouse over certain cells, I wish

to
display certain information.

I am very familiar with Excel's spreadsheet selection events and these
are
not appropriate. It will not be based upon selections.

I am also familiar with the GetCursorPos API. The problem is that when I
try to use this against a cell location, the cell positioning is
according
to its location within the Excel window whereas the GetCursorPos is

against
the entire screen.

I know that this can be done because as one moves the mouse over cells
within a spreadsheet, the mouse icon changes accordingly. This is native
Excel functionality and is exactly what I am trying to emulate.

Does anyone have any idea how to detect which cell(s) the mouse is moving
over at any given time from within Excel?

Thanks & Regards,

Todd






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
Select specific location in spreadsheet dhstein Excel Discussion (Misc queries) 3 March 27th 10 08:02 PM
Lock location of sheet within a spreadsheet PJ Excel Discussion (Misc queries) 4 December 4th 09 07:07 PM
Macro - save to current location vs excel default location leezard Excel Discussion (Misc queries) 0 October 28th 08 03:04 PM
mouse location dennis Excel Discussion (Misc queries) 1 July 25th 06 06:23 PM
Track Mouse Location In a Sheet VBA mowali Excel Discussion (Misc queries) 0 June 13th 05 04:59 PM


All times are GMT +1. The time now is 12:30 PM.

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

About Us

"It's about Microsoft Excel"