Group:  Microsoft Word ยป microsoft.public.word.vba.beginners
Thread: Macro to save a file with the name of text from an ASK field

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Macro to save a file with the name of text from an ASK field
"mr_samuel" <braziersam[ at ]hotmail.com> 26.09.2006 18:04:26
I am trying to create a macro to save the current document with a
variable filename, which will be in a ASK field.
When the document opens, the macro I have now opens dialogue box to
update all 5 of the ASK fields for the user to input data, then when a
button is clicked it prints to a specified printer. What I need now is
the ability to save the document in the name of the text that is in of
the ASK fields (not a bookmark).

Any ideas?

Re: Macro to save a file with the name of text from an ASK field
"Doug Robbins - Word MVP" <dkr[ at ]REMOVECAPSmvps.org> 27.09.2006 03:45:02
I would suggest that instead of using ASK fields, let the user enter all of
the data at once by using a UserForm.

See the article "How to create a Userform" at:

http://word.mvps.org/FAQs/Userforms/CreateAUserForm.htm

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

"mr_samuel" <braziersam[ at ]hotmail.com> wrote in message
news:1159293866.727949.79330[ at ]m7g2000cwm.googlegroups.com...
[Quoted Text]
>I am trying to create a macro to save the current document with a
> variable filename, which will be in a ASK field.
> When the document opens, the macro I have now opens dialogue box to
> update all 5 of the ASK fields for the user to input data, then when a
> button is clicked it prints to a specified printer. What I need now is
> the ability to save the document in the name of the text that is in of
> the ASK fields (not a bookmark).
>
> Any ideas?
>


Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net