Forum Discussion
a_bonsey
May 16, 2022Brass Contributor
vba table valid row count
Hi, I'm supplied Word documents that contain a table that has differing valid rows therefore I need a variable to count the valid rows. In Excel this would be something like: Sub Test()
Wi...
May 17, 2022
Use
Dim objSS As InlineShape
With ActiveDocument.InlineShapes(1)
.OLEFormat.DoVerb wdOLEVerbHide
With .OLEFormat.Object.Application
With .workbooks(1).Worksheets(1)
MsgBox .Range("A1").currentregion.Rows.Count
End With
End With
End With
- a_bonseyMay 17, 2022Brass ContributorThanks for that response.
I tried running and go the error message 'the requested member of the collection does not exist'
The table is there and editable so any ideas why it errors?
TIA