Hello
The way the excel object model is setup, you have first get a handle to the application object.
error = Excel_GetProperty (ExcelAppHandle, NULL, Excel_AppSheets,
CAVT_OBJHANDLE, &ExcelSheetsHandle);
Then use the following function to get a handle to the worksheet object based on the name
CA_VariantSetCString (&sheetVariant, "Sheet2");
error = Excel_SheetsItem (ExcelSheetsHandle, NULL, sheetVariant,
&ExcelWorksheetHandle);
once you have this, you can make it active.
error = Excel_WorksheetActivate (ExcelWorksheetHandle, NULL);
Refer to the CVI Excel shipping example for more info on this, found at ..\CVI\samples\activex\excel\.
Also check out the excel activex object m
odel on how this is setup in excel. You'll be able to get information on this from the
MSDN.
Hope this helps
Bilal Durrani
NI
Bilal Durrani
NI