Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If you only have one worksheet in that "getreadysheet*.xls" workbook, then you
could use: sValue = wbk.Worksheets(1).Range("E1").Value If you have more than one worksheet, how do you know which one to use? Dale wrote: Works great but I did not notice before the worksheet does not have a standard name either. What would I do fo ("WorkSheetName") ? " wrote: Sub ListBooks() Dim wbk As Workbook Dim sValue As String For Each wbk In Workbooks If Left(wbk.Name, 13) = "GetReadySheet" Then sValue = wbk.Worksheets("WorkSheetName").Range("E1").Value End If Next wbk End Sub -- Dave Peterson |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I switch from 1,2,3... back to A,B,C... column reference na | Excel Discussion (Misc queries) | |||
why does the link status always reverts back to UNKNOWN? | Excel Discussion (Misc queries) | |||
How do I switch openoffice back to excel | Excel Programming | |||
How to switch column headers from numbers back to letters? | Excel Worksheet Functions | |||
Can I switch back to Excel sheet while a form is shown? | Excel Programming |