B
BenCh
Hello!
I've recently developed my first macro for Microsoft Word 2007 with the help
of some of the people on this forum.
I'm very pleased with it, but it has a minor bug. [Or do we call them
'design features' here? ;o) ]
It runs immediately before the document is saved or printed. By the time
it's finished going through the actions I ask it to do, the user has lost his
place in the document. If he was reading or editing the bottom of page 3, the
macro will take him to the top of the penultimate page, because the macro
does some work down there. This means the user has to scroll back up the
document to find his place after it has run.
How can I change my macro so that it either:
1) Remembers where the user was looking and takes him straight back to that
position at the end of the macro, so it doesn't appear to have scrolled away,
or...
2) Run the macro so it executes its statements without appearing to have
moved the position of the document.
Any advice is much appreciated, thank you.
I've recently developed my first macro for Microsoft Word 2007 with the help
of some of the people on this forum.
I'm very pleased with it, but it has a minor bug. [Or do we call them
'design features' here? ;o) ]
It runs immediately before the document is saved or printed. By the time
it's finished going through the actions I ask it to do, the user has lost his
place in the document. If he was reading or editing the bottom of page 3, the
macro will take him to the top of the penultimate page, because the macro
does some work down there. This means the user has to scroll back up the
document to find his place after it has run.
How can I change my macro so that it either:
1) Remembers where the user was looking and takes him straight back to that
position at the end of the macro, so it doesn't appear to have scrolled away,
or...
2) Run the macro so it executes its statements without appearing to have
moved the position of the document.
Any advice is much appreciated, thank you.