Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UserForm- Word

Status
Not open for further replies.
May 21, 2001
1
US
I created a custom userform that has text boxes.
Each text box is linked to a docvariable field code in a Word document. If I run the userform 1x, it collects the info, and updates the fields accordingly. Then, the userform is dismissed.

Here's my problem. If I save the document, reopen it and display the userform again, obviously my data is not there...is there a way to programatically "save" each field within the userform so that no matter how many times I close and open it, the info stays there until I wish to get rid of it?

Thanks!

Fred
 
Hi fred,

you can trie to write the info to the registry, I have done it before and this works great.

SaveSetting appname:="application", Section:="name",
Key:="another name", setting:=0

variable = GetSetting(appname:="application", Section:="name", Key:="another name", Default:="False")

hope it works

Tom

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top