+ Reply to Thread
Results 1 to 4 of 4

GetOpenFilename

  1. #1
    Valued Forum Contributor StevenM's Avatar
    Join Date
    03-23-2008
    Location
    New Lenox, IL USA
    MS-Off Ver
    2007
    Posts
    910

    GetOpenFilename

    Please Login or Register  to view this content.
    The above code works, but I can't figure out how to get both *.xlsx files and/or *.xls files.

    I've tried: sFilters = "Excel Files (*.xls;*xlsx), *.xls;*.xlsx"
    But I get all files and not just Excel files.

    I've tried: sFilters = "Excel Files (*.xlsx), *.xlsx" & "Excel Files (*.xls), *.xls"
    But I get an error with that method.

    Any idea how I can get both *.xls & *.xlsx files?

    Any help will be greatly appreciated!

    Steven Craig Miller
    Last edited by StevenM; 03-20-2012 at 03:03 PM.

  2. #2
    Forum Guru tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: How to Use GetOpenFilename to get 2007 Excel Files and pre-2007 Excel Files?

    StevenM,

    Give this a try:
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Valued Forum Contributor StevenM's Avatar
    Join Date
    03-23-2008
    Location
    New Lenox, IL USA
    MS-Off Ver
    2007
    Posts
    910

    Re: GetOpenFilename

    Thanks! An asterisk both before and after does the trick!

  4. #4
    Forum Guru tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: GetOpenFilename

    You're very welcome, and thank you for the rep

+ 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