values in text field not saved

  • Thread starter Thread starter Eric
  • Start date Start date
E

Eric

Hello,

I am not sure if this is the appropriate newsgroup to post
this problem under ...

I have created a word template with text field within the
body of the document. Upon creating a new document from
this template, users have the option to update textfields
from a macro assigned to a toolbar menu item.

Problem is that the values in the text fields are not
saved. When users save the document, close it, and re
open it, the text fields are blank. Changes made outside
of the text fields are saved without problems.

Anyone encountered this before? Thanks for any input
 
Hi Eric,

Sounds like these "text fields" were inserted from the
Control Toolbox? ActiveX controls generally are
"re-initialized" when the document is opened...

Best would probably be macro code that writes the .Value
property (what the user enters) to the .Text property
(although I'm not 100% certain that would work), or to a
DocVariable or DocProperty. Then an AutoOpen macro that
would load the controls again when the document is opened.
I have created a word template with text field within the
body of the document. Upon creating a new document from
this template, users have the option to update textfields
from a macro assigned to a toolbar menu item.

Problem is that the values in the text fields are not
saved. When users save the document, close it, and re
open it, the text fields are blank. Changes made outside
of the text fields are saved without problems.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jan
24 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:-)
 
Back
Top