Solved

Repopulate userform from earlier entries / bookmarks

Posted on 2013-06-04
2
397 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 78

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Shortcuts in Word Just the other day I had a training for Microsoft and they wanted me to show how well the new Windows and Office behaved on a touch device, which by the way is great, but it was only then that I realized that using keyboard shortc…
No matter the version of Windows you are using, you may have some problems with Windows Search running too slow or possibly not running at all. Before jumping into how you can solve this issue, just know there are many other viable alternative deskt…
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…
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …

759 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now