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: 23
Default Open File Using A Wildcard

I am trying to write a macro that will be run weekly, and will open, one by
one, a series of files, extract a certain range of data, paste to a master
file, and close each source file. I cannot convince the requestor to leave
the date out of the file name, so the names of the files changes each week.

Here is a piece of the code:

Workbooks.Open Filename:= _
"C:\EnterpriseServices\ES Dashboard Laurie B 08-23-2007.xls"
Rows("4:40").Select
Selection.Copy

I tried placing an asterisk right after the initial of the person's last
name, (the "B" in this example), but of course this did not work.

Is what I am trying to do possible? If so, how? Thanks in advance!
 
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
opening a file with wildcard Dode Excel Discussion (Misc queries) 1 December 14th 07 03:08 PM
In Excel - Use Windows Explorer instead of File Open to open file KymY Excel Discussion (Misc queries) 1 August 5th 06 09:59 PM
Using Wildcard on Workbooks.Open Stever Excel Programming 1 October 12th 05 09:55 PM
open workbook using wildcard Ben Excel Programming 7 June 6th 05 05:02 AM
Using wildcard for checking whether files are open [email protected] Excel Programming 1 July 30th 03 06:47 PM


All times are GMT +1. The time now is 11:15 PM.

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

About Us

"It's about Microsoft Excel"