Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Repopulate userform from earlier entries / bookmarks

Posted on 2013-06-04
2
Medium Priority
?
455 Views
Last Modified: 2013-08-22
Hi,

I have made my life a lot easier using a userform and bookmarks to automatic populate  repeating text on contracts and documents in word.

But I would like to improve it a little.

After entries have been entered into the word document, I would like to open the userform again and have all the text that I wrote in earlier. If I do this now the fields in the userform are just blank and I must write in all the text again to make corrections. If I leave one blank it will erase the text where the bookmark are set.

So is it possible to repopulate a userform from your earlier entries?
0
Comment
Question by:agepab
2 Comments
 
LVL 84

Expert Comment

by:David Johnson, CD, MVP
ID: 39220994
I use something like evernote and have used other 3rd party applications to clip and paste i.e. activewords
0
 
LVL 19

Accepted Solution

by:
Ken Butters earned 1000 total points
ID: 39221020
You can save data from a userform into a document variable.

The next time you open the userform you can initialize the userform with data saved in the document variables.

The following link has examples for saving data into document variables and reading data back out of document variables.

http://support.microsoft.com/kb/306281

I would read from your documents variables in the forms intialization routine:
Private Sub UserForm_Initialize()
<< Read document variables here and store values in userform>>
End Sub

Open in new window

your userform also has a terminate routine that you can use to save the form data to document variables:
Private Sub UserForm_Terminate()
<< Save data from your userform to document variables here>>
End Sub

Open in new window

0

Featured Post

[Webinar] Cloud Security

In this webinar you will learn:

-Why existing firewall and DMZ architectures are not suited for securing cloud applications
-How to make your enterprise “Cloud Ready”, and fix your aging DMZ architecture
-How to transform your enterprise and become a Cloud Enabler

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windows Explorer let you handle zip folders nearly as any other folder: Copy, move, change, and delete, etc. In VBA you can also handle normal files and folders, but zip folders takes a little more - and that you'll find here.
In a use case, a user needs to close an opened report by simply pressing the Escape (Esc) key. This can be done by adding macro code in Report_KeyPress or Report_KeyDown event.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question