+ Reply to Thread
Results 1 to 3 of 3

GetOpenFilename, .xls And .txt

  1. #1
    Registered User
    Join Date
    08-16-2007
    Location
    Portsmouth, UK
    Posts
    86

    GetOpenFilename, .xls And .txt

    I was wondering if there is a way to show just Excel files AND text files, specifically files with the extension .xls and .txt.

    Part of my program converts a text file to an excel file, I would like the user to be able to see if the .xls file has been created and if so chose whether to open the .txt file or the existing .xls file. If the above isn't possible, can I check if a .xls file exists in a folder, if I did this I could then get the user to select which type of files they would like shown.

    I know I could just have no filtering of the file type at all, which would work, but that wouldn't look as good, and I'm all about how the user interface looks!

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Have a ;ook at the 2 lines of code in red

    Please Login or Register  to view this content.
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  3. #3
    Registered User
    Join Date
    08-16-2007
    Location
    Portsmouth, UK
    Posts
    86
    Perfect, thanks

+ 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