Results 1 to 15 of 15

open all files in a folder with fixed number of characters in filename

Threaded View

  1. #1
    Registered User
    Join Date
    01-14-2012
    Location
    Darlington, England
    MS-Off Ver
    Excel 2003
    Posts
    9

    open all files in a folder with fixed number of characters in filename

    Hi all, I am fairly new to VBA but keen to learn.

    I want to open all the files in a folder whose filename consists of a certain number of characters. The filename will be either 6 or 8 characters long. I have two macros and would like one of them to open all the 6 character filenames and ignore the 8 character ones, while the second macro should only open 8 character filenames. I have found through the forum how to open all files of a given type eg "book1*.xls" but am struggling to be specific on the filename length.

    Can anyone advise?

    Thanks

    Mick
    Last edited by Telemick; 01-18-2012 at 05:42 AM.

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