Results 1 to 7 of 7

Thread: Solved: Choose a folder in a directory if found.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Thanks snb, just one more thing how can i do this?
    [vba]
    txtDir.Text = .SelectedItems(1) 'where txtDir contains the path
    MyFile = Dir(.SelectedItems(1) & "\*.jpg") 'and MyFile contains only the filenames of the images. So only filename are shown in the listbox.
    [/vba]

    I noticed as well that you have to run again the macro and when prompt cancel the inputbox and the macro will start searching otherwise if you just browse it you will have to wait and nothing will happen.
    And the possibility to put indicator that the macro is still searching a folder..
    Nevertheless its pretty good
    Last edited by defcon_3; 06-05-2012 at 06:41 PM.

Posting Permissions

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