ThrottleWorks
Excel Ninja
Hi,
I am using below mentioned code to check if all the headers are present in particular worksheet.
But in this code I need to select every header to check. How can I check all the headers without selecting any cell.
Can anyone please help me in this.
I am using below mentioned code to check if all the headers are present in particular worksheet.
Code:
BrSht.Select
Set TempRng = DivSht.Range(DivSht.Cells(2, 4), DivSht.Cells(40, 4))
For Each Rng In TempRng
On Error Resume Next
Cells.Find(What:=Rng, After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlWhole, MatchCase:=False, SearchFormat:=False).Activate
On Error GoTo 0
If ActiveCell.Value <> Rng Then
MsgBox Rng & " not present in BR sheet"
End
End If
Next
But in this code I need to select every header to check. How can I check all the headers without selecting any cell.
Can anyone please help me in this.