@Anonymous Try with this modified code of @Sea-Haven
(defun c:AH1col ( / pt1 numrows numcolumns rowheight colwidth ent doc curspace obj objtable col)
(vl-load-com)
(setq doc (vla-get-activedocument (vlax-get-acad-object)))
(setq curspace (vla-get-modelspace doc))
; now do table
(setq pt1 (vlax-3d-point (getpoint "\nPick point for top left hand of table: ")))
(setq numrows 2)
(setq numcolumns 2)
(setq rowheight 2.5)
(setq colwidth 20)
(setq objtable (vla-addtable curspace pt1 numrows numcolumns rowheight colwidth))
(vla-settext objtable 0 0 "TABLE")
;(vla-settext objtable 1 0 "Title 1")
(vla-settext objtable 1 0 "COLUMN 1")
(vla-settext objtable 1 1 "COLUMN 2")
(setq objtable (vlax-ename->vla-object (entlast)))
(setq col 0)
(while (setq ent (entsel "pick text object"))
(setq obj (vlax-ename->vla-object (car ent)))
(if (= (vla-get-objectname obj) "AcDbText")
(progn
; (vla-InsertRows objtable numrows 2.5 1)
; (vla-settext objtable numrows 0 (vla-get-textstring obj))
; (setq numrows (+ numrows 1))
(if (= col 0)
(progn
(vla-InsertRows objtable numrows 2.5 1)
(vla-setText objtable numrows col (vla-get-textstring obj))
(setq col (1+ col))
)
(progn
(vla-setText objtable numrows col (vla-get-textstring obj))
(setq col 0)
(setq numrows (1+ numrows))
)
)
)
(alert "pick again not a text")
)
)
(vlax-release-object objtable)
(princ)
)
Debashis Bhunia
Co-Founder of Geometrifying Trigonometry(C)
________________________________________________
Walking is the First step of Running, Technique comes Next....