M
moonunit
I'm trying to finish a form I've created in MS Word 2004 for Mac (OS
10.3). [As you'd expect, the idea is that a blank form is sent out b
me and then, once filled in, is emailed back to me]
Apologies if I'm asking something that's been asked before; but I'
struggling (and failing) to make sense of the VBA Object Browser an
Help dialog.
PROBLEM 1
What I want to do is add into my form a macro which saves the documen
under a name partially created by merging two of the form field name
(bookmarks).
By way of a brief example...
Form field 1 = bookmark "name1"
Form field 2 = bookmark "name2"
Save as "Name1Name2.doc"
What I have succeeded in achieving so far, is the following macro
Sub SaveAsTrial()
ActiveDocument.SaveAs "mydoc.doc", wdFormatDocument 'save .doc format
End Sub
This macro runs (On Entry, Calculated on Exit) on the final form fiel
in the document, and successfully saves the document as "mydoc.doc".
have no idea how to proceed...
[I have tried John McGhie's "...load a variable..." solution (2nd Jun
2005 - Macro to SaveAs rtf) but this is based on highlighting the tex
you want as the document title, which doesn't work when you try to ru
the script from within a form...]
BUT, if somebody were able to help me, there is a second problem...
PROBLEM 2
Whilst I can insert a hyperlink at the end of the form with my emai
address and a subject line what I need to do is attach this save
document to the same email.
Any ideas or pointers would be much appreciated
Ti
10.3). [As you'd expect, the idea is that a blank form is sent out b
me and then, once filled in, is emailed back to me]
Apologies if I'm asking something that's been asked before; but I'
struggling (and failing) to make sense of the VBA Object Browser an
Help dialog.
PROBLEM 1
What I want to do is add into my form a macro which saves the documen
under a name partially created by merging two of the form field name
(bookmarks).
By way of a brief example...
Form field 1 = bookmark "name1"
Form field 2 = bookmark "name2"
Save as "Name1Name2.doc"
What I have succeeded in achieving so far, is the following macro
Sub SaveAsTrial()
ActiveDocument.SaveAs "mydoc.doc", wdFormatDocument 'save .doc format
End Sub
This macro runs (On Entry, Calculated on Exit) on the final form fiel
in the document, and successfully saves the document as "mydoc.doc".
have no idea how to proceed...
[I have tried John McGhie's "...load a variable..." solution (2nd Jun
2005 - Macro to SaveAs rtf) but this is based on highlighting the tex
you want as the document title, which doesn't work when you try to ru
the script from within a form...]
BUT, if somebody were able to help me, there is a second problem...
PROBLEM 2
Whilst I can insert a hyperlink at the end of the form with my emai
address and a subject line what I need to do is attach this save
document to the same email.
Any ideas or pointers would be much appreciated
Ti