Generating a list of .ini files in a directory

Generating a list of .ini files in a directory

Anonymous
Not applicable
269 Views
1 Reply
Message 1 of 2

Generating a list of .ini files in a directory

Anonymous
Not applicable
Hi,

I was able to create a list of files (.dwg) using VB 6 in another program
that I have written. In this current VBA application, I am unable to write
a list of all of the .ini files in a specific directory to a combo box. I
was able to determine the number of .ini files in the directory, but I can't
figure out how to list only the .ini files in a list box?

Thank you
0 Likes
270 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
I suspect you were using the FileListBox control in VB. This control is not
available in VBA
You will have to use the ListBox control and write your own code to populate
the contents
Check out the DIR method in the VBA help file or do a search on the net for
FileSystemObject.

--
Regards
Tom Roberts
__________________________
MechWest Design & Drafting
Perth, Western Australia

"bcbii" wrote in message
news:4930321@discussion.autodesk.com...
Hi,

I was able to create a list of files (.dwg) using VB 6 in another program
that I have written. In this current VBA application, I am unable to write
a list of all of the .ini files in a specific directory to a combo box. I
was able to determine the number of .ini files in the directory, but I can't
figure out how to list only the .ini files in a list box?

Thank you
0 Likes