Hi all,
I am new to Excel/VBA and would require your help.
1. I have a button "Import Data" on my Excel Spreadsheet. I also have three columns in Spreadsheet "Filepath","Fil ename" and "File Extension".
2. when user clicks on "Import Data" button, then the File dialog box opens and he should be able to select not just a file but entire "Folder".
3. This Folder contains .pdf, jpeg etc. files
4. Now What i am trying to do is that for each file in Folder, it's File path, filename and extension should be imported in column in Spreadsheet.
I have been able to select "Folder" through file dialog box.
However i would like to know how can i import File path, filename and extension for each file in Folder and put it in respective columns in spreadsheet.
Any help would be highly appreciated
Thanks
Prashant
I am new to Excel/VBA and would require your help.
1. I have a button "Import Data" on my Excel Spreadsheet. I also have three columns in Spreadsheet "Filepath","Fil ename" and "File Extension".
2. when user clicks on "Import Data" button, then the File dialog box opens and he should be able to select not just a file but entire "Folder".
3. This Folder contains .pdf, jpeg etc. files
4. Now What i am trying to do is that for each file in Folder, it's File path, filename and extension should be imported in column in Spreadsheet.
I have been able to select "Folder" through file dialog box.
However i would like to know how can i import File path, filename and extension for each file in Folder and put it in respective columns in spreadsheet.
Any help would be highly appreciated
Thanks
Prashant
Comment