View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Jacob Skaria Jacob Skaria is offline
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