R
Roderick O'Regan
I have a userform in a Word 2002 template with a combobox populated by
hard coding the various list items within the procedure.
Now I would like to do this automatically from an INI file. The
structure of this INI file is as follows:
[Smith]
name=A Smith
[email protected]
phone=0155 456789
[Jones]
name=B Jones
[email protected]
phone=0432 765432
....and so on.
What I was thinking about is whether there is a routine which looks at
all of the section names and can load these into a combo box (without
the brackets, of course)?
Based on the choice in the combo box I can then use the
System.PrivateProfileString to extract the relevant details from the
appropriate keyname such as email, phone, etc.
Could anyone point me in the direction where I can read up/download
such a procedure, please?
Regards
Roderick O'Regan
hard coding the various list items within the procedure.
Now I would like to do this automatically from an INI file. The
structure of this INI file is as follows:
[Smith]
name=A Smith
[email protected]
phone=0155 456789
[Jones]
name=B Jones
[email protected]
phone=0432 765432
....and so on.
What I was thinking about is whether there is a routine which looks at
all of the section names and can load these into a combo box (without
the brackets, of course)?
Based on the choice in the combo box I can then use the
System.PrivateProfileString to extract the relevant details from the
appropriate keyname such as email, phone, etc.
Could anyone point me in the direction where I can read up/download
such a procedure, please?
Regards
Roderick O'Regan