Inserting text at a specific point via VBA?

W

waddsn1060

I am trying to enter a name into set locations in my document. The
document has [Insert Name Here] blocking the location out. I want to
insert the name there, then have the document adjust the spacing in
that area so there is not a large blank space if the name is short.

Thanks!
 
G

Greg Maxey

Use a Macrobutton field in your template.

Type:

MacroButton NoMacro "Insert name here"

Select it and press CTRL+F9

Save the template and open a document based on that template:

Click on "Insert name here" and type the name.
 
C

Charles Kenyon

See also http://gregmaxey.mvps.org/Repeating_Data.htm if you want the name
to appear more than once.
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide


--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 

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