I've never seen 'visiblerowcount' in the QTP documentation... shouldn't it be 'object.Visible' i.e. object.Visible(value) where in this case the value returned is a boolean, therefore i'm not convinced 'visiblerowcount' will ever work.
visiblerowcount is an internal property of the datagrid object as defined by microsoft. If you set a filter for the swftable, certain rows are hidden according to the filter criteria.
.Rowcount would still give you a count of all the rows in the table.
.visiblerowcount will give you the count of the number of rows visible.
visiblerowcount is not a part of the QTP documentation.
Mercury's solution was that i ask the developers whether they have implemented this method. Sounds reasonable, except that i have tried a lot of internal properties and methods (like captiontext etc.) which all seem to give me the same general run error.
also, why would
Set myobj = SwfWindow("Office 10.0.20.0 (stfapanyc3)").SwfWindow
I can't say why, but by process of elimination you could isolate the problem -
1 try using a different variable to myobj
2 rebuild the object tree from the window upwards running each time to hopefully identify which object is disliked