S
Steve
I want to read through a workbook and on each worksheet
give the first nonblank cell in column 15 the local name
FirstValue. Count is a loop counter for the worksheets
and mRowCtr is a loop counter for the rows on a sheet.
Both the following generate error messages:
ActiveWorkbook.Names.Add Text:="FirstValue", _
RefersTo:="=Sheets(count)!Cells(mRowCtr,C15)"
ActiveWorkbook.Names.Add Name:="Sheets(count)!FirstValue",
_
RefersToR1C1:="=Sheets(count)!Cells(mRowCtr,C15)"
What is wrong? Any help appreciated
give the first nonblank cell in column 15 the local name
FirstValue. Count is a loop counter for the worksheets
and mRowCtr is a loop counter for the rows on a sheet.
Both the following generate error messages:
ActiveWorkbook.Names.Add Text:="FirstValue", _
RefersTo:="=Sheets(count)!Cells(mRowCtr,C15)"
ActiveWorkbook.Names.Add Name:="Sheets(count)!FirstValue",
_
RefersToR1C1:="=Sheets(count)!Cells(mRowCtr,C15)"
What is wrong? Any help appreciated