Forum Discussion
AlexeyKolosov
Staff
16 years agoHi Sumedha,
Add the following line after 'var oSheets;' - this can help you see an error message if it is displayed:
oExcel.Visible = true;
For more information, refer to the 'OleObject Property' help topic. If this suggestion does not help, please let us know which version of Excel you are using and send us the file you are trying to open.