drom
Well-known Member
- Joined
- Mar 20, 2005
- Messages
- 527
- Office Version
- 2021
- 2019
- 2016
- 2013
- 2011
- 2010
- 2007
Hi and many thanks in advance!!
Here is my query:
Is it possible to check within a closed workbook, if any of the sheets within the closed file, is named=hello, without having to open the file?
I know how to do it when opening the file, but without?
eg: if the file is named qaz.xls
when is open, this does the job:
but when closed?
the reason why I don't want to open the file is because, I have to check for every file within a folder, and the folder could have >250 files.
usually hello is always the first sheet, "usually but not 100%"
and because some files are >450kb.
thanks!!
Here is my query:
Is it possible to check within a closed workbook, if any of the sheets within the closed file, is named=hello, without having to open the file?
I know how to do it when opening the file, but without?
eg: if the file is named qaz.xls
when is open, this does the job:
Code:
Dim X As Single
For X = 1 To Workbooks(("qaz.xls").Sheets.Count
If LCase(Workbooks("qaz.xls").Sheets(X).Name) = "hello" Then
....
Exit Sub
End If
Next X
but when closed?
the reason why I don't want to open the file is because, I have to check for every file within a folder, and the folder could have >250 files.
usually hello is always the first sheet, "usually but not 100%"
and because some files are >450kb.
thanks!!