Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-06-2010, 08:52 AM
sauerj sauerj is offline How do I avoid Hourglass using API Function? Windows XP How do I avoid Hourglass using API Function? Office 2003
Novice
How do I avoid Hourglass using API Function?
 
Join Date: Nov 2010
Location: Lafayette, IN
Posts: 2
sauerj is on a distinguished road
Question 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
Attached Files
File Type: doc Msgbox_API_Test1.doc (46.0 KB, 12 views)

Last edited by sauerj; 11-06-2010 at 12:00 PM. Reason: Added Cross-Post Link
Reply With Quote
  #2  
Old 11-10-2010, 06:53 AM
sauerj sauerj is offline How do I avoid Hourglass using API Function? Windows XP How do I avoid Hourglass using API Function? Office 2003
Novice
How do I avoid Hourglass using API Function?
 
Join Date: Nov 2010
Location: Lafayette, IN
Posts: 2
sauerj is on a distinguished road
Smile Found My Own Solution to above

Found Solution: See CROSS-POST link in Main Post above for solution details. ... sauerj ...
Reply With Quote
Reply

Tags
api, cursor, message box



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I avoid Hourglass using API Function? 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
How do I avoid Hourglass using API Function? 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

Other Forums: Access Forums

All times are GMT -7. The time now is 04:40 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft