S
singeredel
I am trying to find out how to pause code execution when calling an add-in
sub that
contains a modeless userform. The add-in program is used to count lines for
billing purposes. My purpose is to delete specific text from a document
before running the line-counting program and, once the line-counting has
occurred, restore the text within the document.
The code to delete and restore the specific text works fine; however, when I
call the line-counting program, the dialog box appears for the line-counting
program, but the rest of the calling program executes before I can execute
the line-counting dialog box, thereby restoring the deleted text before I can
count the lines. The line-counting dialog box continues to display. The
specific code used to call the add-in program is as follows:
Application.Run MacroName:="Abacus.Counter.AbacusCountLines"
Is there a way to stop the calling program from executing until the called
add-in program dialog box has executed and unloaded?
Also, I have tried to step through my program code to debug, but it will
not continue to step through any code after the "Application.Run MacroName"
code, although the code appears to run because the deleted text reappears in
the document.
Thanks for any help!
sub that
contains a modeless userform. The add-in program is used to count lines for
billing purposes. My purpose is to delete specific text from a document
before running the line-counting program and, once the line-counting has
occurred, restore the text within the document.
The code to delete and restore the specific text works fine; however, when I
call the line-counting program, the dialog box appears for the line-counting
program, but the rest of the calling program executes before I can execute
the line-counting dialog box, thereby restoring the deleted text before I can
count the lines. The line-counting dialog box continues to display. The
specific code used to call the add-in program is as follows:
Application.Run MacroName:="Abacus.Counter.AbacusCountLines"
Is there a way to stop the calling program from executing until the called
add-in program dialog box has executed and unloaded?
Also, I have tried to step through my program code to debug, but it will
not continue to step through any code after the "Application.Run MacroName"
code, although the code appears to run because the deleted text reappears in
the document.
Thanks for any help!