UPDATE: note that there has not been found an actual answer to this, yet? for as aked:) still checking.. seeing if another way to ask question / simulate the requried result. easy vb not seem to accomodate a 'hand' mouse pointer icon. will include
angle left arrow.. thanks.
==========
hi, i am curious if there is a vb for excel where you hover over a cell then the pointer changes to the same pointer as when hover over a hyperlink. thanks.
ie:
if my other vb true.. then (if left formula 6? = qlink.. then)
mouse pointer hover activate? over cell
my vb
end if
==========
i have found the following information: checking / might need help in its application when hover over a cell, for eg: if .selection = then
i would prefer to get a HAND POINTER to do the same trick as is normally done in excel.
Sub ChangeCursor()
Application.Cursor = xlNorthwestArrow
'Application.Cursor = xlWait 'hourglass
'Application.Cursor = xlBeam '
'HAND POINTER?? http://msdn.microsoft.com/en-us/library/system.windows.forms.cursors.hand%28v=vs.110%29.aspx
'For X = 1 To 1000 'for coordinates?
'For Y = 1 To 1000
'Next Y
'Next X
Application.Cursor = xlDefault 'reset to default when done
End Sub
found samples at:
http://www.mrexcel.com/forum/excel-questions/681925-userform-hand-mouse-icon-when-scroll-over-buttons.html
http://stackoverflow.com/questions/46805/custom-cursor-in-wpf
with some of the examples for icons i have found.. have to check but one simple version (if can do by vb), suggested that one could simulate the same hand icon over a cell by right clicking? and creating a hyperlink to that cell with offset? as 0,0. :)
not sure if that is a good thing to do, or if there might be some vb that would simulate that, without any drawbacks of the hyperlink? just speculating - checking.
i have found some code that wonder if will work, i am trying to figure out how to apply it.
on the UserForm for the label (or relevant control) MouseMove and MouseDown events:
SetHandCur True
When the cursor is over the control, the cursor changes, and using the
MouseDown event ensures that the cursor does not revert to default
when clicking a mouse button.
in a module:
Public Declare Function LoadCursor Lib "user32" Alias "LoadCursorA" _
(ByVal hInstance As Long, ByVal lpCursorName As Long) As Long
Public Declare Function SetCursor Lib "user32" _
(ByVal hCursor As Long) As Long
Public Const IDC_HAND = 32649&
Public Const IDC_ARROW = 32512&
Public Sub SetHandCur(Hand As Boolean)
If Hand = True Then
SetCursor LoadCursor(0, IDC_HAND)
Else
SetCursor LoadCursor(0, IDC_ARROW)
End If
End Sub
'IDC_CROSS = 32515&
'IDC_HAND = 32649&
'IDC_ARROW = 32512&
'IDC_UPARROW = 32516&
'IDC_APPSTARTING = 32650&
'IDC_IBEAM = 32513&
'IDC_ICON = 32641&
'IDC_SIZE = 32640&
'IDC_SIZEALL = 32646&
'IDC_WAIT = 32514&