E
Edward Mendelson
Hello,
For a rather huge macro that I'm writing, a sub calls two private
subroutines, which are performed multiple times as the macro loops through
different story ranges; the private subs attempt to perform various
replacements of text, and I know how to count the number of replacements
that each one makes. When the macro is finished, I want the calling
subroutine to display the total number of replacments made by the private
subs, but I can't figure out how to get the counts back from the private
subs to the calling subs. Is there an FAQ that would provide the answer, or
do I need to use functions instead of subroutines to accomplish this?
Many thanks for any help.
Edward Mendelson
For a rather huge macro that I'm writing, a sub calls two private
subroutines, which are performed multiple times as the macro loops through
different story ranges; the private subs attempt to perform various
replacements of text, and I know how to count the number of replacements
that each one makes. When the macro is finished, I want the calling
subroutine to display the total number of replacments made by the private
subs, but I can't figure out how to get the counts back from the private
subs to the calling subs. Is there an FAQ that would provide the answer, or
do I need to use functions instead of subroutines to accomplish this?
Many thanks for any help.
Edward Mendelson