I am running a batch file, where I open up files which have 7 worksheets on average. I want to make changes on a particular sheet where in cell A1 contains the text "xxxxxx detailed". (where xxxxxx represents varying text).
I would like my code to open up the file; search through Cell A1 on each wkshts and when it finds the one with "detailed" on it, to Select that wksht.
Do Until mcol = z
Workbooks.Open Filename:="S:\Data\1Comp\" & Cells(603, mcol), _
UpdateLinks:=0
MyName1 = ActiveWorkbook.Name
'Search thru wkshts
'If Range("a1"
= ****detailed??? Then
Current Worksheet.Select
Thanks for the help.
Richard
I would like my code to open up the file; search through Cell A1 on each wkshts and when it finds the one with "detailed" on it, to Select that wksht.
Do Until mcol = z
Workbooks.Open Filename:="S:\Data\1Comp\" & Cells(603, mcol), _
UpdateLinks:=0
MyName1 = ActiveWorkbook.Name
'Search thru wkshts
'If Range("a1"
Current Worksheet.Select
Thanks for the help.
Richard