My macro fails when invoked from a desktop shortcut but runs well when invoked from MS. I'm at a loss to understand this. I have insured that I have the exact and latest macro in the shortcut.
It fails about half way through and seems like a timing issue but why does it work when invoked directly from MS?
Rob
Macro fails when invoked from shortcut
Moderators: Dorian (MJT support), JRL
What does your macro do?
There are lots of possible issues. The first to come to mind is: are you writing, reading, or calling other files? If so are the names fully pathed? When called from the Macro Scheduler menu, file names are influenced by Macro Scheduler settings. When called from a shortcut, file names are at the mercy of the operating system and the environment path.
There are lots of possible issues. The first to come to mind is: are you writing, reading, or calling other files? If so are the names fully pathed? When called from the Macro Scheduler menu, file names are influenced by Macro Scheduler settings. When called from a shortcut, file names are at the mercy of the operating system and the environment path.
The macro opens and reads some text from a tabbed dbx (via GetTextatPoint).
The macro stops at an error message because a tabbed dbx was not being manipulated properly. Thats why I thought it was a timing issue.
I have now increased STEP_DELAY from 10 to 20 and that seems to have cured the problem, but I don't understand why the macro always worked when invoked from MS.
The macro stops at an error message because a tabbed dbx was not being manipulated properly. Thats why I thought it was a timing issue.
I have now increased STEP_DELAY from 10 to 20 and that seems to have cured the problem, but I don't understand why the macro always worked when invoked from MS.