how to keep "working area" of document in sight

M

muyBN

Frequently while stepping through a macro that manipulates a document, I want
to view what's going on in the document window. However, when I do a text
search, for example, that goes to a part of the document that's not visible
in the window, I have to manually go to that window, scroll down to where the
affected text is until it's visible on the top portion of the window, then
come back to the VBE to continue with the testing. Any suggestions on how to
keep the affected part of the document up in sight in the window? Thanks in
advance for any tips.
 
J

Jonathan West

muyBN said:
Frequently while stepping through a macro that manipulates a document, I
want
to view what's going on in the document window. However, when I do a text
search, for example, that goes to a part of the document that's not
visible
in the window, I have to manually go to that window, scroll down to where
the
affected text is until it's visible on the top portion of the window, then
come back to the VBE to continue with the testing. Any suggestions on how
to
keep the affected part of the document up in sight in the window? Thanks
in
advance for any tips.

Look up the ScrollIntoView method in the VBA Help.


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top