Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-26-2022, 06:28 AM
BrianHoard BrianHoard is offline How to show wait cursor during vba script? Windows 10 How to show wait cursor during vba script? Office 2019
Advanced Beginner
How to show wait cursor during vba script?
 
Join Date: Jul 2022
Location: Haymarket, VA USA
Posts: 85
BrianHoard is on a distinguished road
Default How to show wait cursor during vba script?

I have some scripts that may take 30 seconds to run on large documents, so I want to show the hourglass/wait cursor.
I'm using the following code, but it doesn't have any effect. The cursor flashes rapidly back and forth between normal and wait. The same behavior if I comment this out. Am I missing some step to make this work?



Code:
' Set status bar text
StatusBar = ("Please wait...")

' Turn cursor to wait
System.Cursor = wdCursorWait
DoEvents

' My script runs here...

' Turn cursor back to normal.
StatusBar = ("Complete")
System.Cursor = wdCursorNormal
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cursor/typing caret doesn't show when moved around in Word 2019 vkhu Word 2 09-30-2020 07:58 AM
Wait (hourglass) cursor constantly flashing after loading large file didlinghill Word 4 01-26-2015 06:08 AM
How to show wait cursor during vba script? Wait for 2013? Warranty issue.... alexb123 Office 1 12-14-2012 01:44 PM
How to show wait cursor during vba script? Applicatin.wait SDondeti Word VBA 1 05-27-2011 02:12 AM
Show cursor in PP presentations whs PowerPoint 0 03-12-2011 11:31 AM

Other Forums: Access Forums

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


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