LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 186
Default Search for Partial File Name

Hi,
I am writing a macro that will open a number of workbooks in the same
folder, one at a time. The workbooks will have a uniform naming convention,
like Book1_June_Bob.xls, Book2_June_Tim.xls, etc.

In the macro I want to loop through the folder, looking for a workbook where
the LEFT(FileName,5)=€ťBook1.€ť When I find €śBook1€ť, I want to open it, do some
stuff, close it and then look for €śBook2.€ť

Is there code that will do that?





--
Ken Hudson
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Partial string search w/o VBA? MJW[_2_] Excel Discussion (Misc queries) 6 October 22nd 07 08:16 PM
partial search Arne Hegefors Excel Programming 1 September 19th 06 02:51 PM
how to use partial (word) search Vikky Excel Programming 1 July 14th 06 01:12 PM
Partial search and replace? Jamie Furlong Excel Discussion (Misc queries) 2 August 28th 05 03:54 PM
Partial Search using Macro Rachael[_3_] Excel Programming 4 November 24th 04 02:41 AM


All times are GMT +1. The time now is 01:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"