+ Reply to Thread
Results 1 to 5 of 5

Identifying XLS Workbook

  1. #1
    Registered User
    Join Date
    02-23-2008
    Location
    Whyalla , South Australia
    Posts
    34

    Identifying XLS Workbook

    Hi I was wondering how if I could write a VBA code to find a WorkBook in a shared folder that only has a partial naming convention (IE the first few and last few characters change but the middle few are always constant). Once I have identified the the Workbooks I also need to identify the most recent.


    The Project I am attempting is for work I need to print several work sheets out 3 or 4 times a day and the people creating them all have their own naming conventions. I would like to automate this printing process so as Excel 2000 finds & prints them when I click a button with out me having to go looking for them.


    Any help greatly appreciated.

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967
    How about something based upon this stub macro

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-23-2008
    Location
    Whyalla , South Australia
    Posts
    34
    Very helpfull thankyou but how do I select the most recent file and print it.

  4. #4
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967
    Try

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    02-23-2008
    Location
    Whyalla , South Australia
    Posts
    34
    Whow man thank you so much you are a legend. That piece of code has just made my working day so much easier.

+ 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