Range=Excel.OlePropertyGet("Range", "A1:C50");Range.OleProcedure("Replace","text_to_replace", WideString("replacement"));
XLWBooks.OleProcedure("Open", "D:\\test.xls");/*ошибка*/XLWBooks.OlePropertyGet("Item", i+1).OlePropertyGet("WorkSheets").OlePropertyGet("Item", 1).OlePropertyGet("Range", "A1:H20").OlePropertyGet("Find").OleProcedure("Execute","privet",false,false,false,false,false,true,1,false, "пока",2);
Variant wBook = NULL;wBook = XLWBooks.OleFunction("Open", L"D:\\test.xls");
Variant wSheet = NULL, wRange = NULL, wFind = NULL;wSheet = wBook.OlePropertyGet("WorkSheets").OlePropertyGet("Item", 1);wRange = wSheet.OlePropertyGet("Range", L"A1:H20");wFind = wRange.OlePropertyGet("Find");// и так далее...