I thought I would share what I came up with in the end, it is a script that checks for the ClassType of the object and uses their respective methods accordingly. It is paired up with an inputbox to let the user select which rows/columns should be checked.
Dim appWord ''Word application object
Dim inshapeSheet ''Inline shapes object
Dim objOLE ''OLE object
Set appWord=CreateObject("Word.Application")
appWord.Application.Documents.Open("C:\doc.doc")
appWord.Visible=True
Set inshapeSheet = appWord.ActiveDocument.InlineShapes
Function count_filled_spaces(intOLENo, strRange)
''Activates the the inline shape by number(intOLENo) and defines it as the OLE object
inshapeSheet(intOLENo).OLEFormat.Activate
Set objOLE = inshapeSheet(intOLENo).OLEFormat.Object
''Detects the ClassType of the inline shape and uses a class specific counter to count which datafields have data
strClass = inshapeSheet(intOLENo).OLEFormat.ClassType
i = 0
If Left(strClass, 8) = "MSGraph." then
For Each p In objOLE.Application.DataSheet.Range(strRange)
If p <> "" Then
i = i+1
End If
Next
ElseIf Left(strClass, 6) = "Excel." then
For Each p In objOLE.Worksheets(1).Range(strRange)
If p <> "" Then
i = i+1
End If
Next
End if
count_filled_spaces = i
End Function
strRange = InputBox("Lol", "do eeet", "A1:A10")
wscript.echo count_filled_spaces(1, strRange)
wscript.echo count_filled_spaces(2, strRange)
wscript.echo count_filled_spaces(3, strRange)
appWord.Application.Documents.Save
appWord.Application.Documents.Close
appWord.Application.Quit
WScript.Quit(0)