how to ask user for a variable and print it throughout the word doc

E

Erik Witkop

So I am a php/perl person and I really don't know how to work within
the MSword confines. Can someone help me come up with an attack for
this problem.

Here is what I am looking to do:

A user opens a word document (office 2007). A popup window asks for a
few responses such as

customer_name
engineer_name
etc...

Then the script runs and populates the appropriate fields with that
given information. Now I guess it can be a 'find and replace' but if
there is something more elegant such as a variable etc... I am all
ears.

Thanks in advance,

Erik Witkop
 
J

John McGhie

Hi Erik:

Look up ASK and FILLIN field in the Help. That's what you need.

Ignore the references to mail merge: they can be used in any context you
like. Use them to populate bookmarks, then insert cross-references to the
bookmarks wherever you want the text the user filled in to appear.

For a critical application, look up "User Forms". These enable you to build
your own dialogs and perform data validation.

And as Bob says, you're in the wrong forum :) The nice folks in the Word
2007 group will help you from here...

Cheers


So I am a php/perl person and I really don't know how to work within
the MSword confines. Can someone help me come up with an attack for
this problem.

Here is what I am looking to do:

A user opens a word document (office 2007). A popup window asks for a
few responses such as

customer_name
engineer_name
etc...

Then the script runs and populates the appropriate fields with that
given information. Now I guess it can be a 'find and replace' but if
there is something more elegant such as a variable etc... I am all
ears.

Thanks in advance,

Erik Witkop

--
Don't wait for your answer, click here: http://www.word.mvps.org/

Please reply in the group. Please do NOT email me unless I ask you to.

John McGhie, Microsoft MVP, Word and Word:Mac
Sydney, Australia. mailto:[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