Hi =?Utf-8?B?c2Fkc2Zhbg==?=,
I have a userform in Word, When I click 'save as' is there a macro (That I
can link to a custom save as button) to ensure that the filename is taken
from the first text label in a form?
Name the macro FileSaveAs and it will run when the button is clicked. Example
to pick up the text in a form field named "XYZ"
Sub FileSaveAs()
With Dialogs(wdDialogFileSaveAs)
.Name = ActiveDocument.Formfields("XYZ").Result
.Show
End With
End Sub
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail
