Does anyone know how to index to a given table in word during an export ? vbaCheckRes(oleGet(objTable, cPropertyRows, objRows)) if (null objRows) { ack "Failed to get rows collection" } clear objArgBlock put(objArgBlock, rowNo) vbaCheckRes(oleMethod(objRows, cMethodItem, objArgBlock, objRow)) if (null objRow) { ack "Failed to get row object" } .........but this supposes that I already have the handle for the table 'objTable'. What I want to do is set 'objTable' to be some table other than the latest one exported. I was thinking I could get hold of the 'tables collection' then index though them, but I can't seem to find the correct incantaion. // Get a handle on the tables collection checkRes(oleGet(objDoc,cPropertyTables,objTables)) if (null objTables) { ack "Unable to get tables collection" } Any ideas? Thanks Andrew. SystemAdmin - Fri Oct 02 02:42:22 EDT 2009 |
Re: Select a particular table in word during export I have never tried, but why don't you keep your objTable handles in a skip list (befor you destroy them) so that you can reuse them afterwards ? Alain |
Re: Select a particular table in word during export |