I need to set EndOfFile and DataRange = to the row number they reside in.
Thanks in advance,
Scott
Dim NumOfRows As Integer
Dim EndOfFile As Range
Dim DataRange As Range
Sub Find_xy_data()
Dim RowArray(1 To 10000) As Range
'Counters
i = 2
' Locate last line of KLARF location data
Cells.Find(What:="EndOfFile;", After:=ActiveCell, LookIn:= _
xlFormulas, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:= _
xlNext, MatchCase:=False, SearchFormat:=False).Activate
Set EndOfFile = ActiveCell.Rows
' Locate first line of KLARF location data
Cells.Find(What:="DefectRecordSpec", After:=ActiveCell, LookIn:= _
xlFormulas, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:= _
xlNext, MatchCase:=False, SearchFormat:=False).Activate
Set DataRange = ActiveCell