Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

InputBox used in a form template

Status
Not open for further replies.

Gwynne

MIS
Sep 20, 1999
19
US
In a Word macro, I open a document, and an InputBox requests a name. I want this name to then be placed into that document. In Word 6, this was accomplished in the following manner:

Name$ = InputBox$ ("Enter your name.", "Name")
Insert (Name$)

VBA does not have a comprable function for INSERT, and I have not used VBA enough to know how to make this work.

Any and all help would be greatly appreciated.
 
Try Selection.Text = InputBox$("Enter your name.", "Name")

AC
 
Thanks! I knew it would be something simple.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top