PC Review


Reply
Thread Tools Rate Thread

changing image when mousepointer moves over certain cells

 
 
lieven
Guest
Posts: n/a
 
      4th Oct 2009
Hi,

I would like to change the image in a userform when the mousepointers moves
over a certain cell.
I know how to make it work when the cell is selected but not when only the
mousepointer is above the cell.
Can anyone help me?

Thanks,

Lieven

 
Reply With Quote
 
 
 
 
Jacob Skaria
Guest
Posts: n/a
 
      4th Oct 2009
If you mean to load and display the userform on cell mouse move; then try
placing a image control from Control ToolBox.
--Right click>FormatControl>Properties and check 'Move and size with cells
--Right click>Properties>BorderStylle to 0-fmBorderStyleNone
--Right click>Properties>Backcolor to match cell back color
Double click the control and use the mousemove event

Private Sub Image1_MouseMove(ByVal Button As Integer, ByVal Shift As
Integer, ByVal X As Single, ByVal Y As Single)
'your code to load userform,chnage image,show form
End Sub


If this post helps click Yes
---------------
Jacob Skaria


"lieven" wrote:

> Hi,
>
> I would like to change the image in a userform when the mousepointers moves
> over a certain cell.
> I know how to make it work when the cell is selected but not when only the
> mousepointer is above the cell.
> Can anyone help me?
>
> Thanks,
>
> Lieven
>

 
Reply With Quote
 
Howard31
Guest
Posts: n/a
 
      4th Oct 2009
Put a object from the ActiveX controls toolbar, like a lable on that cell
double click that label which will bring up the code mudule for that label
and put your code in the 'MouseMove' event handler.

Hope this helps.

A. Ch. Eirinberg
"lieven" wrote:

> Hi,
>
> I would like to change the image in a userform when the mousepointers moves
> over a certain cell.
> I know how to make it work when the cell is selected but not when only the
> mousepointer is above the cell.
> Can anyone help me?
>
> Thanks,
>
> Lieven
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fixed image moves down spreadsheet. mancini Microsoft Excel Discussion 0 19th Jan 2009 01:28 PM
Data in cells with gridlines moves up within the cells. J Osborne Microsoft Excel Misc 0 18th Nov 2008 06:51 PM
Image moves =?Utf-8?B?VG9kZHJv?= Microsoft Frontpage 2 5th Apr 2006 04:55 PM
Re: Changing MousePointer Steve C. Orr [MVP, MCSD] Microsoft ASP .NET 0 21st Jul 2004 12:27 AM
Re: Changing MousePointer Curt_C [MVP] Microsoft ASP .NET 0 20th Jul 2004 07:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:54 PM.