Search code examples
exceloleibm-doors

OleAutoObj is not opening Excel application in my PC


Following dxl code is not opening an excel application in my PC. I suspect an earlier dxl script which I ran. It activated Excel Ole Objects and opened them. How to close all excel processes which opened by earlier dxl script? Any help will be greatly appreciated.

OleAutoObj objExcel = oleCreateAutoObject("Excel.Application")
if (objExcel != null){
bool excelVisible
oleGet(objExcel, "Visible", excelVisible)
if (excelVisible == false){
olePut(objExcel, "Visible", true)
}
}

-Ashok Anumula


Solution

  • there is a perm oleCloseAutoObject( objExcel )