JGM
Fri Dec 05 20:44:02 CST 2003
Hi Jonathan,
For all the times you (and the others MVP's as well) have helped me, I am
sure glad I could share something new with you!
Have a great weekend!
Cheers!
--
_______________________________________
Jean-Guy Marcil
jmarcil@sympatico.ca
"Jonathan West" <jwest@mvps.org> a écrit dans le message de news:
Oc4Yz83uDHA.1512@TK2MSFTNGP10.phx.gbl...
> Hi Jean-Guy,
>
> That is definitely neat! And I hadn't come across that library before.
> Thanks for sharing! More to explore always...
>
> --
> Regards
> Jonathan West - Word MVP
>
http://www.multilinker.com
> Please reply to the newsgroup
>
>
> "JGM" <no-spam@leaveme.alone> wrote in message
> news:uyTdSuzuDHA.1224@TK2MSFTNGP09.phx.gbl...
> > Hi Torstein,
> >
> > Would you consider this different aproach:
> > '_______________________________________
> > 'Needs a reference to (Tools > Reference)
> > 'Microsoft Shell Controls And Automation
> >
> > Dim oShell As Shell32.Shell
> > Dim oFolder As Shell32.Folder
> > Dim EverythingOK As Boolean
> >
> > EverythingOK = False
> >
> > Set oShell = New Shell32.Shell
> > Set oFolder = oShell.BrowseForFolder(0, "Select ", 0)
> >
> > On Error GoTo NoPath
> > MsgBox oFolder.Self.Path
> > EverythingOK = True
> >
> > NoPath:
> > Set oFolder = Nothing
> > Set oShell = Nothing
> >
> > If EverythingOK Then Exit Sub
> >
> > On Error GoTo 0
> > MsgBox "Action cancelled by user.", vbExclamation, "Cancelled"
> > '_______________________________________
> >
> > Advantage: User can delete, create or rename folders at will...
> > Disadvantge: User has to find his way throught he folder tree (as
opposed
> to
> > typing a few letters, then selecting from a listbox... as per your idea)
> >
> > HTH
> > Cheers!
> >
> > --
> > _______________________________________
> > Jean-Guy Marcil
> > jmarcil@sympatico.ca
> >
> > "Torstein S. Johnsen" <sejohnse@online.no> a écrit dans le message de
> news:
> > qWXzb.3580$n31.63533@news2.e.nsc.no...
> > > I am not very familiar with userforms, but I use a lot of VBA and I'm
> very
> > > thankful for a lot of help from this groups.
> > >
> > > I have a directory with hundreds of subdirectorys. They are quite
> > difficult
> > > to "navigate" between.
> > >
> > > I want to make a userform where the user can write one or more letters
> in
> > a
> > > field. I want the combo-box tol be filled (is that the same as
> populated?)
> > > with all subdir that starts with that letter(s). From that combobox
the
> > user
> > > can choose one directory and then the fileopen dialog is opened.
> > >
> > > I'm sure this is possible. Hope someone can help me in the right
> > direction!
> > >
> > > Thanks!
> > >
> > > Torstein
> > >
> > >
> >
> >
>