View Single Post
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default Using a form to fill in field code text

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

"Marc" wrote in message
...
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.