R
ronben
Version: 2004 Operating System: Mac OS X 10.4 (Tiger) Processor: Intel I am looking for a different strategy for the following (since the macro below does not work: A user fills out a form. A macro is needed to step through each of the form fields and then copy or paste the user-supplied content of each into a separate Word document. The idea is to "autogenerate" a letter from the contents of the form fields.
The following test macro did not work; got a compiler error: "invalid use of property".
Sub CopyTextToNewPage
Dim vHistory as String
vHistory = ActiveDocument.FormFields("Text1").Result
ActiveDocument.FormFields("Text2")=vHistory
end sub
The compiler error highlighted is: FormFields("Text2"
I am probably missing something simple here. (I have found that the Macro editor is fussy about the kind of double-quotes used.)
Thanks,
BMK
The following test macro did not work; got a compiler error: "invalid use of property".
Sub CopyTextToNewPage
Dim vHistory as String
vHistory = ActiveDocument.FormFields("Text1").Result
ActiveDocument.FormFields("Text2")=vHistory
end sub
The compiler error highlighted is: FormFields("Text2"
I am probably missing something simple here. (I have found that the Macro editor is fussy about the kind of double-quotes used.)
Thanks,
BMK