Solved

Repopulate userform from earlier entries / bookmarks

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This is written from a 'VBA for MS Word' perspective, but I am sure it applies to most other MS Office components where VBA is used.  One thing that really bugs me is slow code, ESPECIALLY when it's mine!  In programming there are so many ways to…
Using Word 2013, I was experiencing some incredible lag when typing.  Here's what worked for me....
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

914 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

19 Experts available now in Live!

Get 1:1 Help Now