Mrrrr's Forum (VIEW ONLY)
Un forum care ofera solutii pentru unele probleme legate in general de PC. Pe langa solutii, aici puteti gasi si alte lucruri interesante // A forum that offers solutions to some PC related issues. Besides these, here you can find more interesting stuff.
|
Nou pe simpatie: angela31 pe Simpatie
 | Femeie 23 ani Buzau cauta Barbat 24 - 60 ani |
|
|
Mrrrr's Forum (VIEW ONLY)ReguliInregistrareLoginPozeNu sunteti logat. Lista Forumurilor Pe Tematici
|
| #1 |
|
|
In Word VBA the traditional Excel command Application.Wait (Now + TimeValue("00:00:01")) does not work.
The workaround is to use the WinAPI Sleep function, like this:
' put the following line before your subroutine (before Sub...) Private Declare Sub Sleep Lib "kernel32.dll" (ByVal dwMilliseconds As Long)
' Sub... ' do something
' put the following line where you want VBA to wait / sleep Sleep 1000 ' 1000 = 1 second |
Source: https://stackoverflow.com/a/50958119/21934226
_______________________________________

|
|
| |
|