I have a File abc.tmdx in where I past a table that I creat in PlanMaker. All OK.
In my Pgm.bas I do:
Dim tm as Object : Dim Table1 as Object : Set tm = CreateObject("TextMaker.Application") : tm.Application.RecentFiles.Add FName$
tm.Documents.Open FName$
Set Table1 = tm.ActiveDocument.Tables.Item(1)
'MsgBox tm.ActiveDocument.FormFields(1).Name
' give me Table1
'MsgBox tm.ActiveDocument.FormFields.Count
' give 1 !
'---------
MsgBox tm.ActiveDocument.Tables(1).Rows(2).Cells.Count ' give me 9
tm.ActiveDocument.Tables(1).Rows(2).Cells(5).PreferredWidth = 49 ' is good can change at +- and make the change in Tables(1)
The Problem is that I can not change or input MyData in the Tables
I try this:
With tm.ActiveDocument
.Tables.Item(1).Cell(rowx&,colx&) = "5"
'Error in line: 345 - Object doesn't support this property or method
.Rows(5).Cells(6) = "201" ' R: 1. Invalid procedure call or argument
.Cell(5,6) = "2022" ' R: 2. Invalid procedure call or argument
.Tables.Item.Cell(10,8) = "2022"
End With
tm.ActiveDocument.Tables(1).Cell(10,
BUT all fault. How I Enter the Data in Cells ?
