+ Reply to Thread
Results 1 to 3 of 3

Listing only xlsm files of the folder with VBA

  1. #1
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Listing only xlsm files of the folder with VBA

    Hi

    Need a code for my "List Files" button on a userform that should prompt me to select a folder . After selecting folder the ListBox1 on the same userform should be populated with the names of only xlsm files in that folder .My folder may contain sub folders but I don't need to list the files from the sub folders.

    Help would be greatly appreciated.

    Best Regards
    Imran Bhatti
    Teach me Excel VBA

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Listing only xlsm files of the folder with VBA

    Test in attached file

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by kev_; 12-27-2017 at 09:04 AM.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  3. #3
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: Listing only xlsm files of the folder with VBA

    Thanks kev you saved me from the traditional filter ( in red in what I got)

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Selective listing of files in a folder
    By Un-Do Re-Do in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-22-2016, 02:18 AM
  2. Convert csv files in folder to xlsm
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-13-2015, 09:49 PM
  3. Listing number of files per folder?
    By dark91zc in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-07-2013, 03:20 PM
  4. [SOLVED] VBA for listing Products in All Excel Files in Folder
    By e.isayev in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-16-2013, 05:26 PM
  5. Listing/Renaming Files in a folder from excel
    By Kelshaer in forum Excel Tips
    Replies: 4
    Last Post: 01-23-2013, 11:04 AM
  6. Listing files contained in a folder
    By boylejob in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-04-2008, 11:13 AM
  7. Periodically listing files in a folder
    By haven104 in forum Excel General
    Replies: 2
    Last Post: 01-10-2006, 05:10 AM

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