Tree View

U

Ulf Nilsson

Hi,
Is it possible to create some kind of tree view, like the one in Explorer,
in a form? If a user click on a + it will show the structure under it.

Background:
I have a lot of text files in a lot of folders. If I pick a folder name in
the structrue, I want all the files to be shown. If I click a file, the
content will show.

Any hint/tips will be greatly appreciated.

/ Ulf
 
J

Jonathan West

If you are using Office XP or later, take a look at the FileDialog object.
This displays a dialog much like the File Open dialog in Word that allows
you to browse to a file.

--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 
J

Jezebel

You can try using the TreeView control -- you'll need to add it under
'Additional controls' -- but how well it works on a VBA UserForm I don't
know.
 
U

Ulf Nilsson

Thank you Jezebel!
You have put me on the right track. When I searched the Internet for
"TreeView1 Word vba" I found a lot of useful links.

/ Ulf
 

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