Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / August 2005

Tip: Looking for answers? Try searching our database.

Using "HourGlass" cursor in WordApp

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
PaulDGoldstein - 15 Aug 2005 17:31 GMT
Does anyone know how to change the cursor from within a Word Macro?

I used to use Cmd.Hourglass = True, but that know longer works.

Then I declared LoadCursor and SetCursor, and tried
SetCursor(LoadCursor(0,IDC_WAIT)), but that doesn’t do anythin
either.

Any ideas

--
PaulDGoldstei
Jay Freedman - 15 Aug 2005 20:53 GMT
> Does anyone know how to change the cursor from within a Word Macro?
>
[quoted text clipped - 5 lines]
>
> Any ideas?

Nothing that complicated. You change the System.Cursor property:

Sub Wait_a_Bit()
  Dim intWait As Long

  StatusBar = "Please wait..."

  For intWait = 1 To 100000
      System.Cursor = wdCursorWait
  Next intWait

  StatusBar = "Task completed"
  System.Cursor = wdCursorNormal
End Sub

Signature

Regards,
Jay Freedman
Microsoft Word MVP          FAQ: http://word.mvps.org

PaulDGoldstein - 15 Aug 2005 22:03 GMT
Thanks, Jay.
I ended up figuring out the same thing myself. Don’t know how I misse
the Cursor option for the System. keyword in the first place.

Thanks again

--
PaulDGoldstei
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.