![]() |
|
#1
|
|||
|
|||
![]()
Hi,
I tried the 'Application.Wait' function in a Word macro, but it didn't work. Is it restricted to Excel? Thanks, RobiNew |
#2
|
|||
|
|||
![]()
Yes, as IntelliSense, or the Object Browser, would have shown you.
|
#3
|
|||
|
|||
![]()
Many thanks, Italophile! If that is the case, how can I slow down a Word macro?
|
#4
|
|||
|
|||
![]()
Add the following at the module level:
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long) Run the following as a demo: Code:
Sub Demo() Dim lngIndex As Long For lngIndex = 1 To 10 Doze 500 Next lngIndex MsgBox "Done" End Sub Sub Doze(ByVal lngPeriod As Long) DoEvents Sleep lngPeriod End Sub |
#5
|
|||
|
|||
![]()
Many thanks, gmaxey! Your code is perfect, but I need a simpler solution for my complex macro. All the best!
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to show wait cursor during vba script? | BrianHoard | Word VBA | 4 | 08-27-2022 08:08 AM |
Share Function is NOT linking to the application | mlawton | OneNote | 0 | 05-22-2018 02:17 PM |
Wait (hourglass) cursor constantly flashing after loading large file | didlinghill | Word | 4 | 01-26-2015 06:08 AM |
![]() |
alexb123 | Office | 1 | 12-14-2012 01:44 PM |
![]() |
SDondeti | Word VBA | 1 | 05-27-2011 02:12 AM |