I've got a snippet of code that I use to put in a default "0" into cells in a table. The code works great, but, in larger tables with many rows, it takes for freakin' ever. Any idea of how to speed it up any?
(setq *LE*ClearTAbleRowCount (- (vlax-get-property *LE*TableObject 'Rows) 2))
(while (> *LE*ClearTAbleRowCount 2)
(vla-SetCellTextStyle *LE*TableObject *LE*ClearTAbleRowCount *LE*TAbleColumnInsertCount "Hall_Table")
(vla-SetCellAlignment *LE*TableObject *LE*ClearTAbleRowCount *LE*TAbleColumnInsertCount acMiddleCenter)
(vla-SetText *LE*TableObject *LE*ClearTAbleRowCount *LE*TAbleColumnInsertCount 0)
(vla-SetCellTextHeight *LE*TableObject *LE*ClearTAbleRowCount *LE*TAbleColumnInsertCount (/ (getvar "dimscale") 12))
(setq *LE*ClearTAbleRowCount (1- *LE*ClearTAbleRowCount))
);while
Sincerely,
Rabbit