Hi, i have been combing the internet for about 2 weeks now looking for a solution to my problem
A warning beforehand, I am using office 2003 I have a template in word with various text boxes but i only need to use 6 of these which i have bookmarked ("bookmark1" - 6). When the template opens a UserForm with a Listbox ("Listbox1") appears. The list box has the names and information from a spreadsheet that looks like this (these names are on column 1 of the spreadsheet)
When they choose a name and click an "OK" command button i would like the textboxes on the form to autofill with information from the UserForm.
for example if "Dave" was selected, text box 1 on the form would fill in the name, box 2 the start date, box 3 the annual leave remaining etc, just for Dave.
I have everything in place i just dont know the code to get it from the userform to fill in the boxes if you could help at all it would mean a lot and bring an end to my epic search for a solution
Mr Ronsen
A warning beforehand, I am using office 2003 I have a template in word with various text boxes but i only need to use 6 of these which i have bookmarked ("bookmark1" - 6). When the template opens a UserForm with a Listbox ("Listbox1") appears. The list box has the names and information from a spreadsheet that looks like this (these names are on column 1 of the spreadsheet)
Name | Start date | Annual Leave Remaining | Annual Leave entitlement |
Dave | 09/01/10 | 12 | 32 |
John | 08/02/09 | 3 | 34 |
Bobby C | 07/03/08 | 9 | 32 |
When they choose a name and click an "OK" command button i would like the textboxes on the form to autofill with information from the UserForm.
for example if "Dave" was selected, text box 1 on the form would fill in the name, box 2 the start date, box 3 the annual leave remaining etc, just for Dave.
I have everything in place i just dont know the code to get it from the userform to fill in the boxes if you could help at all it would mean a lot and bring an end to my epic search for a solution
Mr Ronsen