View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Dale Dale is offline
external usenet poster
 
Posts: 92
Default Switch between unknown wbk name grab a value and go back

I know this is going to easy, but for the life of me...
I would like to be able to go thru all open workbooks and switch to one
whose name changes all the time but has the same beginning,
GetReadySheet_*.xls.
I found this code

Sub ListBooks()
Dim wbk As Workbook
For Each wbk In Workbooks
MsgBox wbk.Name
Next wbk
End Sub

but I dont know enough to be able to use the
Windows(€œGetReadySheet_*.xls€).Activate to go to the GetReadySheet workbook,
grab a cell value out of E6 and then go back to the file with the code. Any
thoughts€¦