Deleting line from Combo Box

B

BeeJay

Hi,

I have created a letter template using word vba. Users create their
profiles and these are saved as a txt file, which is then read back in. The
"names" of the profiles created are also saved to a file called
"profiles.txt". The combo box that I have (cboProfile) then reads the
profile "names" from "profiles.txt" and this populates the combo box. I have
created a delete button which deletes the profile, however the name still
remains in the "profile.txt" and therefore in the combo box list. How do I
get rid of this?

Thanks in advance!
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?QmVlSmF5?=,
I have created a letter template using word vba. Users create their
profiles and these are saved as a txt file, which is then read back in. The
"names" of the profiles created are also saved to a file called
"profiles.txt". The combo box that I have (cboProfile) then reads the
profile "names" from "profiles.txt" and this populates the combo box. I have
created a delete button which deletes the profile, however the name still
remains in the "profile.txt" and therefore in the combo box list. How do I
get rid of this?
1. Version of Word and Windows?

2. How is the text file constructed? Show us an example.

3. Show us the code that reads from the text file.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top