Solved

Repopulate userform from earlier entries / bookmarks

Posted on 2013-06-04
2
418 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 79

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 500 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
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…

770 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