Martensyte
Mechanical
- Oct 29, 2005
- 9
Hi Group,
I've written a VB6 application which among other things attempts(!) to update some info within design tables - it works sometimes, but the problem is getting the DT to be the active workbook. (there is another WB that must stay open in Excel while the program is running and sometimes it remains as the active WB, so when the program tries to modify the DT it targets the other WB and the DT is unchanged). Code I use is as follows:
swbstat = swPart.Extension.SelectByID2("Design Table", "DESIGNTABLE", 0, 0, 0, False, 0, Nothing, swSelectOptionDefault)
swPart.InsertFamilyTableEdit
Set ExcelWB = ExcelApp.ActiveWorkbook
Any suggestions how upon opening the DT it can be forced to be the active WB?
Thx.
David G.
I've written a VB6 application which among other things attempts(!) to update some info within design tables - it works sometimes, but the problem is getting the DT to be the active workbook. (there is another WB that must stay open in Excel while the program is running and sometimes it remains as the active WB, so when the program tries to modify the DT it targets the other WB and the DT is unchanged). Code I use is as follows:
swbstat = swPart.Extension.SelectByID2("Design Table", "DESIGNTABLE", 0, 0, 0, False, 0, Nothing, swSelectOptionDefault)
swPart.InsertFamilyTableEdit
Set ExcelWB = ExcelApp.ActiveWorkbook
Any suggestions how upon opening the DT it can be forced to be the active WB?
Thx.
David G.