Inserting Text into Word from User Form

D

Don Yates

I'm trying to build a user form to assist in grading assignments that use Word. I want a user form with 20-30 textboxes and command buttons so that I can just put the cursor on the error in the document and click on the appropriate comment's command button in the userform.

Selection.TypeText (TextBox1.Value) works fine.

Problem is returning control back to the document after "show"ing the userform without unloading the form.

Thanks in advance

don

EggHeadCafe - Software Developer Portal of Choice
Insert Records - XML/ADO Marshalling Over The Net
http://www.eggheadcafe.com/tutorial...bb29-621bdddd8638/insert-records--xmlado.aspx
 
D

Doug Robbins - Word MVP

Use

..Show vbModeless

to show the userform modeless which means that you can leave it open and
move the focus backwards and forwards between the form and the document.

--
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, originally posted via msnews.microsoft.com
in message news:[email protected]...
 

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