06-03-2008, 04:10 AM
Try this:
Code:
sText = Browser("micclass:=Browser").WebElement("innertext:=Inbox.*", "html tag:=B", "index:=0").GetROProperty("innertext")
leftParan = InStr(1, sText, "(")
rightParan = InStr(1, sText, ")")
numOfMails = Mid(sText, leftParan + 1, rightParan - leftParan - 1)
MsgBox numOfMails