Hello @theo.bot
Sorry, I have returned, I have done some troubleshooting before sending this message.
Unless I am missing something, but I am unable to expand my columns to the desired numbers.
Currently it limits me to five columns only regardless of the information I add.
using the same spreadsheet and .idw I have sent on this forum, would you be able to assist in finding out
what I am missing? I have inserted the code below the picture.
Thank you

Sub main
Dim oDrawDoc As DrawingDocument
oDrawDoc = ThisApplication.ActiveDocument
Dim oSheet As Sheet
'ophalen template path definitie
oExcel = "D:\SUPERHEATERS\SUPERHEATER_Template1.xlsx"
i=1
For Each oSheet In oDrawDoc.Sheets
CreateTable(oExcel, oSheet, i)
i=i+1
Next
End Sub
Sub CreateTable(ByVal oExcel As String, oSheet As Sheet,i As Integer)
Dim oSheetName As String
oSheetName = "ELEMENT" & i
Dim oTitles(5) As String
oTitles(0) = GoExcel.CellValue(oExcel, oSheetName, "A2")
oTitles(1) = GoExcel.CellValue(oExcel, oSheetName, "B2")
oTitles(2) = GoExcel.CellValue(oExcel, oSheetName, "C2")
oTitles(3) = GoExcel.CellValue(oExcel, oSheetName, "D2")
oTitles(4) = GoExcel.CellValue(oExcel, oSheetName, "E2")
oTitles(5) = GoExcel.CellValue(oExcel, oSheetName, "F2")
'oTitles(6) = GoExcel.CellValue(oExcel, oSheetName, "G2")
'oTitles(7) = GoExcel.CellValue(oExcel, oSheetName, "H2")
'oTitles(8) = GoExcel.CellValue(oExcel, oSheetName, "I2")
'oTitles(9) = GoExcel.CellValue(oExcel, oSheetName, "J2")
Dim oContents(47) As String
oContents(0) = GoExcel.CellValue(oExcel, oSheetName, "A3")
oContents(1) = GoExcel.CellValue(oExcel, oSheetName, "B3")
oContents(2) = GoExcel.CellValue(oExcel, oSheetName, "C3")
oContents(3) = GoExcel.CellValue(oExcel, oSheetName, "D3")
oContents(4) = GoExcel.CellValue(oExcel, oSheetName, "E3")
oContents(5) = GoExcel.CellValue(oExcel, oSheetName, "F3")
'oContents() = GoExcel.CellValue(oExcel, oSheetName, "G3")
'oContents() = GoExcel.CellValue(oExcel, oSheetName, "H3")
'oContents() = GoExcel.CellValue(oExcel, oSheetName, "I3")
'oContents() = GoExcel.CellValue(oExcel, oSheetName, "J3")
oContents(6) = GoExcel.CellValue(oExcel, oSheetName, "A4")
oContents(7) = GoExcel.CellValue(oExcel, oSheetName, "B4")
oContents(8) = GoExcel.CellValue(oExcel, oSheetName, "C4")
oContents(9) = GoExcel.CellValue(oExcel, oSheetName, "D4")
oContents(10) = GoExcel.CellValue(oExcel, oSheetName, "E4")
oContents(11) = GoExcel.CellValue(oExcel, oSheetName, "F4")
'oContents() = GoExcel.CellValue(oExcel, oSheetName, "G4")
'oContents() = GoExcel.CellValue(oExcel, oSheetName, "H4")
'oContents() = GoExcel.CellValue(oExcel, oSheetName, "I4")
'oContents() = GoExcel.CellValue(oExcel, oSheetName, "J4")
oContents(12) = GoExcel.CellValue(oExcel, oSheetName, "A5")
oContents(13) = GoExcel.CellValue(oExcel, oSheetName, "B5")
oContents(14) = GoExcel.CellValue(oExcel, oSheetName, "C5")
oContents(15) = GoExcel.CellValue(oExcel, oSheetName, "D5")
oContents(16) = GoExcel.CellValue(oExcel, oSheetName, "E5")
oContents(17) = GoExcel.CellValue(oExcel, oSheetName, "F5")
'oContents() = GoExcel.CellValue(oExcel, oSheetName, "G5")
'oContents() = GoExcel.CellValue(oExcel, oSheetName, "H5")
'oContents() = GoExcel.CellValue(oExcel, oSheetName, "I5")
'oContents() = GoExcel.CellValue(oExcel, oSheetName, "J5")
oContents(18) = GoExcel.CellValue(oExcel, oSheetName, "A6")
oContents(19) = GoExcel.CellValue(oExcel, oSheetName, "B6")
oContents(20) = GoExcel.CellValue(oExcel, oSheetName, "C6")
oContents(21) = GoExcel.CellValue(oExcel, oSheetName, "D6")
oContents(22) = GoExcel.CellValue(oExcel, oSheetName, "E6")
oContents(23) = GoExcel.CellValue(oExcel, oSheetName, "F6")
'oContents() = GoExcel.CellValue(oExcel, oSheetName, "G6")
'oContents() = GoExcel.CellValue(oExcel, oSheetName, "H6")
'oContents() = GoExcel.CellValue(oExcel, oSheetName, "I6")
'oContents() = GoExcel.CellValue(oExcel, oSheetName, "J6")
oContents(24) = GoExcel.CellValue(oExcel, oSheetName, "A7")
oContents(25) = GoExcel.CellValue(oExcel, oSheetName, "B7")
oContents(26) = GoExcel.CellValue(oExcel, oSheetName, "C7")
oContents(27) = GoExcel.CellValue(oExcel, oSheetName, "D7")
oContents(28) = GoExcel.CellValue(oExcel, oSheetName, "E7")
oContents(29) = GoExcel.CellValue(oExcel, oSheetName, "F7")
'oContents() = GoExcel.CellValue(oExcel, oSheetName, "G7")
'oContents() = GoExcel.CellValue(oExcel, oSheetName, "H7")
'oContents() = GoExcel.CellValue(oExcel, oSheetName, "I7")
'oContents() = GoExcel.CellValue(oExcel, oSheetName, "J7")
oContents(30) = GoExcel.CellValue(oExcel, oSheetName, "A8")
oContents(31) = GoExcel.CellValue(oExcel, oSheetName, "B8")
oContents(32) = GoExcel.CellValue(oExcel, oSheetName, "C8")
oContents(33) = GoExcel.CellValue(oExcel, oSheetName, "D8")
oContents(34) = GoExcel.CellValue(oExcel, oSheetName, "E8")
oContents(35) = GoExcel.CellValue(oExcel, oSheetName, "F8")
'oContents() = GoExcel.CellValue(oExcel, oSheetName, "G8")
'oContents() = GoExcel.CellValue(oExcel, oSheetName, "H8")
'oContents() = GoExcel.CellValue(oExcel, oSheetName, "I8")
'oContents() = GoExcel.CellValue(oExcel, oSheetName, "J8")
oContents(36) = GoExcel.CellValue(oExcel, oSheetName, "A9")
oContents(37) = GoExcel.CellValue(oExcel, oSheetName, "B9")
oContents(38) = GoExcel.CellValue(oExcel, oSheetName, "C9")
oContents(39) = GoExcel.CellValue(oExcel, oSheetName, "D9")
oContents(40) = GoExcel.CellValue(oExcel, oSheetName, "E9")
oContents(41) = GoExcel.CellValue(oExcel, oSheetName, "F9")
'oContents() = GoExcel.CellValue(oExcel, oSheetName, "G9")
'oContents() = GoExcel.CellValue(oExcel, oSheetName, "H9")
'oContents() = GoExcel.CellValue(oExcel, oSheetName, "I9")
'oContents() = GoExcel.CellValue(oExcel, oSheetName, "J9")
oContents(42) = GoExcel.CellValue(oExcel, oSheetName, "A10")
oContents(43) = GoExcel.CellValue(oExcel, oSheetName, "B10")
oContents(44) = GoExcel.CellValue(oExcel, oSheetName, "C10")
oContents(45) = GoExcel.CellValue(oExcel, oSheetName, "D10")
oContents(46) = GoExcel.CellValue(oExcel, oSheetName, "E10")
oContents(47) = GoExcel.CellValue(oExcel, oSheetName, "F10")
Dim InsP As Point2d
InsP = ThisApplication.TransientGeometry.CreatePoint2d(15, 15)
Dim oCustomTable As CustomTable
oCustomTable = oSheet.CustomTables.Add("CHURCH WINDOWS EXISTING WELDS", InsP, 6, 8, oTitles,oContents)
End Sub