+ Reply to Thread
Results 1 to 4 of 4

how to pick up xlsx and xls extension from Subfolders

  1. #1
    Registered User
    Join Date
    08-01-2012
    Location
    Home
    MS-Off Ver
    Excel 2003
    Posts
    23

    how to pick up xlsx and xls extension from Subfolders

    I have a code that picks up xls extension from subfolders and displays them. But I also need to add XLSX extension how will I do that. Also the code that I have right now. removes the .xls part in drop down it would be great if .xlsx is also removed.

    Here's the code that I have right now.

    Please Login or Register  to view this content.
    Thanks.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: how to pick up xlsx and xls extension from Subfolders

    Maybe:
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    08-01-2012
    Location
    Home
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: how to pick up xlsx and xls extension from Subfolders

    Quote Originally Posted by JBeaucaire View Post
    Maybe:
    Please Login or Register  to view this content.
    Hi thanks for responding I understand that part but here's my problem how do I deal with this. Because that part of the code is connected to this. How will I implement it here so it takes both xls and xlsx files. Please see red / Bold font Thank you..

    Please Login or Register  to view this content.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: how to pick up xlsx and xls extension from Subfolders

    I think you've designed yourself into a corner. The first macro I believe is gathering file names for you.... but then you intentionally strip off the extension, then this next macro is trying to use your "stripped" filenames and put the extension back on? No offense, but that's funny.

    So, fix your original macro to create your list of "found files" with extensions intact. Then just open them.

+ 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