I have a SAP script in vba. It starts on buttonclick. On my compture, it works fine. But on other computers, after the script is over, and the macro ends with a msgbox(it says Done) the excel file not responding (the script ran fine, saved everything). No error message, moreover it looks like running (in taskmanager). If more excel files are open, cannot change between them. VBA editor is the same. However, there are two excel files - one is the original I opened, and another, that is not visible, only in task manager and named Microsoft Excel - originalfilename. I looked my SAP settings, Excel settings, but couldn't find any discrepancy. Can anyone help, why is it happening?
Thanks!
set x=createobject("Excel.Application")
closing the function withset x=nothing
? What does the SAP do, could it be doing something still? How many Excel.EXE's are open in the processes tab on task mgr? - Nathan_SavScreenUpdating
to True? Is it calculating after you setApplication.Calculation
back toxlAutomatic
? - puzzlepiece87ScreenUpdating
to false, and not setApplication.Calculation
either. In task mngr on Processes tab two application, with almost the same name (one them has the Microsoft Excel prefix), on Details tab only one Excel.exe. Tha most embarassing, that the file is on network, so I open it, works fine on my PC, but open the exactly same file on another compture - and not so fine... - donmichael