Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 133
Default find file that starts with todays date

and activate

this is what i have
For xxx = 1 To Workbooks.Count

If xxx.Name Like Format(Date, yyyymmdd) & .csv Then
xxx.Activate
End If

Next xxx


thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default find file that starts with todays date

Try the below

For Each wb In Workbooks
If wb.Name Like Format(Date, "yyyymmdd") & "*" Then _
wb.Activate: Exit For
Next

If this post helps click Yes
---------------
Jacob Skaria


"LuisE" wrote:

and activate

this is what i have
For xxx = 1 To Workbooks.Count

If xxx.Name Like Format(Date, yyyymmdd) & .csv Then
xxx.Activate
End If

Next xxx


thanks in advance

Reply
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
Save file as todays date Rinto Syah Excel Discussion (Misc queries) 4 May 4th 09 11:39 AM
Save file with todays date ref#11235 [email protected] Excel Worksheet Functions 2 January 29th 09 06:59 PM
Excel 2000 - find todays date Richard Excel Discussion (Misc queries) 2 July 11th 06 01:41 PM
Insert Todays Date - 3 in file name Hargrove[_2_] Excel Programming 1 June 24th 04 02:08 PM
Saving a file with todays date on the end Tempy Excel Programming 6 April 19th 04 01:32 PM


All times are GMT +1. The time now is 09:17 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"