I don't know why I'm getting an error at the line that says Set RgFound
Code:
Sub CheckFileFormat()
Dim Array1(200) As String
Dim Array2(200) As String
Dim CurrFileName As String
Dim Numrows As Integer
Dim I As Integer
Dim rgFound As Range
CurrFileName = Range("A2").Value
MsgBox CurrFileName
If Range("F2").Value <> "" Then
ActiveWorkbook.Sheets("ColumnHeadings").Activate
Range("A1").End(xlToRight).Select
Set rgFound = Range(Selection).Find(CurrFileName)
Range(FoundCell.End(xlDown)).Select
Numrows = Selection.Rows.Count
For I = 1 To Numrows
Next I
End If
End Sub
[code]