+ Reply to Thread
Results 1 to 8 of 8

Browser help

  1. #1
    Forum Contributor CobraLAD's Avatar
    Join Date
    07-23-2007
    Location
    Boksburg, South Africa
    MS-Off Ver
    Office 2019
    Posts
    346

    Browser help

    I am trying to get the browser to select the previous selected folder, which is the value of a TextBox on a UserForm

    File is attached. If I use the following I get an error Type mismatch
    please help

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by CobraLAD; 03-30-2010 at 05:13 AM.

  2. #2
    Valued Forum Contributor tony h's Avatar
    Join Date
    03-14-2005
    Location
    England: London and Lincolnshire
    Posts
    1,187

    Re: Browser help

    bInfo.pidlRoot is a long
    UserForm1.TextBox1.Value is text


    click on the * Add Reputation if this was useful or entertaining.

  3. #3
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Browser help

    You can make it work using the following amendment, but are you aware that this will make the top level (i.e. root) folder the selected item, so you won't be able to navigate back up. Did you actually want to just reselect the current item?
    Please Login or Register  to view this content.
    Remember what the dormouse said
    Feed your head

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Browser help

    PS If you just want to pre-select whatever was in the textbox, then try the attached version.
    Attached Files Attached Files

  5. #5
    Forum Contributor CobraLAD's Avatar
    Join Date
    07-23-2007
    Location
    Boksburg, South Africa
    MS-Off Ver
    Office 2019
    Posts
    346

    Re: Browser help

    thanks romperstomper

    this is what I want, but how do I get a "\" always at the end. I also want to list the files in that folder.

  6. #6
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Browser help

    You can just alter the code to append the backslash:
    Please Login or Register  to view this content.
    Where were you planning to list the files?

  7. #7
    Forum Contributor CobraLAD's Avatar
    Join Date
    07-23-2007
    Location
    Boksburg, South Africa
    MS-Off Ver
    Office 2019
    Posts
    346

    Re: Browser help

    Thanks, I got it to work; I am listing the files in a listbox on a userform, without the file ext. I am creating a mp3 file lister with track names. From the directory I generate the ** name, and add the track names horizontally. I can also view them on a separate userform. The ** name generating is quit unique. My CD1, CD2 of a album is under the name of the ** in separate folders, and the ** name gets generated accordingly.

    Send me a PM if you want to see the file

  8. #8
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Browser help

    Thanks for the offer, but I doubt it would work on my Mac!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1