Centering a form on the document window

  • Thread starter christophercbrewster via OfficeKB.com
  • Start date
C

christophercbrewster via OfficeKB.com

I'm using a form that relates to the active document, and I'd like it to be
centered on that document's window. Most of the people who will be using my
macros use multiple screens, and the box often appears very far from the
document window, typically on another screen. So I'd like to grab the info
about the document window's position and size, and center the form in that
area. Is this feasible? (Another approach; identify which screen it's on,
and stay on that screen, but I don't know where to get this info.)

--
Christopher Brewster
Lockheed Martin, Eagan MN

Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.aspx/word-programming/200810/1
 
D

Doug Robbins - Word MVP

While the information in the article "Making a UserForm show above a newly
created Word 2000+ document" at:

http://www.word.mvps.org/FAQs/Userforms/KeepUserFmAboveDoc.htm

was created for another purpose, you may be able to make use of it for your
purpose.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
C

christophercbrewster via OfficeKB.com

Thanks for the response. I may have to postpone this improvement, but I'll
mention one more thing: the document on which I need to center the form isn't
newly created, but there is a newly created document too. So I'll need to be
able to identify the document. I'd be interested in any tips about adapting
these instructions to work for another doc.
While the information in the article "Making a UserForm show above a newly
created Word 2000+ document" at:

http://www.word.mvps.org/FAQs/Userforms/KeepUserFmAboveDoc.htm

was created for another purpose, you may be able to make use of it for your
purpose.
I'm using a form that relates to the active document, and I'd like it to
be
[quoted text clipped - 5 lines]
area. Is this feasible? (Another approach; identify which screen it's on,
and stay on that screen, but I don't know where to get this info.)

--
Christopher Brewster
Lockheed Martin, Eagan MN

Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.aspx/word-programming/200810/1
 

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