+ Reply to Thread
Results 1 to 2 of 2

VBA code to find .asc files in a directory

  1. #1
    Registered User
    Join Date
    06-14-2013
    Location
    Flagstaff,AZ USA
    MS-Off Ver
    Excel 2010
    Posts
    20

    VBA code to find .asc files in a directory

    Hi fourm,

    I am searching for a way to have excel identify ASCII files in a specified directory. I seem to be running in to problems telling the program to look for the file extension ".asc" because it is not a defined Microsoft object.

    Here's the code i have been trying.

    Please Login or Register  to view this content.
    Thanks,


    Dubbdan

  2. #2
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Re: VBA code to find .asc files in a directory

    Your code works fine, no?
    Please click the * below if this helps

+ 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. Find *.xls files in a directory and run macro(including *.xls located in subfolders)
    By driftlogic in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-12-2012, 11:34 AM
  2. [SOLVED] Reading in files from directory......does this code also alphabetize the file names
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-24-2012, 08:20 AM
  3. Problem with code - move files to another directory
    By uncleslinky in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-14-2011, 10:06 AM
  4. Want to apply macro to all files in directory (have code)
    By traderindia in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-19-2009, 12:47 AM
  5. Find files in a directory using excel VBA
    By julioMendes1964 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-30-2007, 11:21 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