In our application I have the Excel Sheets. I want to automate the Excel Sheet name.(Ex: Name)

I am Using Text Area Checkpoint test the Sheet Name

Like This
If Browser(“Browser”).WinObject(“CustomerNames.do”).C heck (CheckPoint(“Name”))) Then
Reporter.ReportEvent micPass,”SheetName”,”Display Correct Sheet Name”
Reporter.ReportEvent micFail,”SheetName”,”Display Incorrect Sheet Name”
End If

Above code works fine some times. Some times its fails. Or can I use any other checkpoints.
Please any one helps me. I will appreciate you.

Thanks & Regards