Add files in directory to a listbox

  • Re: Files in directory

    What do you want to be able to do once you have them in your listbox ? The reason I ask is that if you want to be able to open them, it would be simpler to use the GetOpenFileName dialog box

    1. chdir("C:\Will\") :application.GetOpenFilename

    Will show the OpenFile dialog box, containing a list of all files in the directory C:\Will\

  • Re: Files in directory

    If you want to add the files to a listbox on a userform, places the following in a userform initialise event