This is part of code . At the 1st if , error popop is coming saying "apllication -defined or object oriented error" .
For Row_num = 2 To 3
'Column numbers
For Col_num = 6 To 7
'Check for grey color
If Workbooks(Book_name).Worksheets("ParameterLifecycles").Range(Cells(Row_num, Col_num), Cells(Row_num, Col_num)).Interior.Color = RGB(217, 217, 217) Then
'Check if software name is empty
If Not IsEmpty(Workbooks(Book_name).Worksheets("ParameterLifecycles").Range("S" & Row_num)) Then
soft_rd = Workbooks(Book_name).Worksheets("ParameterLifecycles").Range("S" & Row_num)
Else
soft_rd = Workbooks(Book_name).Worksheets("ParameterLifecycles").Range("B" & Row_num)
End If
'Exit the row once software name is obtained
Col_num = 16[enter image description here][1]
