Using a form to fill in field code text

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

This is pretty basic vb but it has been a long time since I've used VBA at
all so please help.

I have recorded a macro for entering a field code similar to:

{ opendoc!x }

Now I want to have a user form that prompts for the doc that needs to be
opened.

What code would I use to pass what they enter to the field code macro?

Any help whatsoever would be appreciated. I've spent the last 4 hours
digging around the web and forums for a clue.
 
Check out the InputBox()

--
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
 

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

Back
Top