How to Refresh data query in Excel via Borland C++ Excel Application Server

Does anyone have a code snipit showing how to refresh a database query in a worksheet?
I am currently trying the following code but cannot get a pointer to the querytable.
ExcelWorkbook1->ConnectTo(ExcelApplication1->Get_ActiveWorkbook());
ExcelWorksheet1->ConnectTo(ExcelWorkbook1->Get_ActiveSheet());
ExcelQueryTable1->ConnectTo(ExcelWorksheet1->QueryTables);
ExcelQueryTable1->Refresh();