>Nadya,
>
>If you comment out the oXLS.ActiveWindow.SelectedSheets.PrintPreview line, it should simply display the sheet (when the oXls.visible = .t. executes).
>
>>
>>Ok, another question: Is it possible to turn it to Normal excel view not the Preview?
>>
Thanks, Steve. I guess, I'll add another mode to this program.
It didn't work. Immediatelly pops up a question "Do you want to save?", but Excel doesn't become visible
Ok, made it work by just making it visible and not executing the rest of the code.
If it's not broken, fix it until it is.
My Blog