#1
|
|||
|
|||
How do I avoid Hourglass using API Function?
Hello, In MS WORD (version 2003), I am trying to use a Windows API MessageBoxA function in place of the VBA built-in MsgBox() function. Why? I want the message box to be modeless so that user can select text inconjunction w/ the operating macro, and, to me, building a UserForm for these multiple user interactive tasks is much too cumbersome.
This API approach works OK, except for one issue. When I run the macro and move my mouse outside of the MB window, the cursor is displayed as an HOURGLASS. The HOURGLASS will confuse the user. What can I do to get the HOURGLASS to turn back to a normal arrow cursor. NOTE: If I right-click when outside of the API window and then left-click, the HOURGLASS goes away. ... Also, if the macro is started while in the VB editor window, then the HOURGLASS never occurs. So, seems like there would be a way to avoid this hourglass. Any help is greatly appreciated. ... Thank you, sauerj PS: See attachment which contains the macro containing these MessageBox API functions. Added Cross-Post LINK: http://www.excelforum.com/word-progr...-function.html Last edited by sauerj; 11-06-2010 at 12:00 PM. Reason: Added Cross-Post Link |
#2
|
|||
|
|||
Found My Own Solution to above
Found Solution: See CROSS-POST link in Main Post above for solution details. ... sauerj ...
|
Tags |
api, cursor, message box |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
is there an autocomplete function? | limlim | Word | 1 | 05-09-2014 04:38 AM |
if function help | jim831 | Excel | 2 | 10-29-2010 07:06 PM |
System seems to be refreshing - hourglass while typing messa | Waldo1973 | Outlook | 0 | 07-13-2007 10:25 AM |
Need help on what function to use??? | Primeraman | Excel | 1 | 06-13-2006 10:16 AM |
Help with Combination function | sanasath | Excel | 0 | 12-13-2005 07:24 AM |