Private Declare Function apiLoadCursorFromFile Lib "user32" _
Alias "LoadCursorFromFileA" _
(ByVal lpFileName As String) _
As Long
Private Declare Function apiSetCursor Lib "user32" _
Alias "SetCursor" _
(ByVal hCursor As Long) _
As Long
Public Sub ChangeCursor(strCursorName As String)
Dim lngRet As Long
If Len(Dir(strCursorName)) > 0 Then
lngRet = apiLoadCursorFromFile(strCursorName)
lngRet = apiSetCursor(lngRet)
End If
End Sub