Excel vba macro run in background. Macros can also be activated my changing any cell on a sheet or moving from one cell to another or when when you double click or right click. Doevents is an excel vba command that temporarily pauses the execution of the macro to refresh the screen and execute any pending events in excel. If excel is running without any excel file being openedloadedrunning then have a look at the personalxlsb file. To have a macro run in the background see doevents you cannot use select or activate you must write real vba code.
It is possible to write a macro that will activate every time you open or close a sheet or open or close a workbook. Notice that these macros are activated by events on the sheet or the workbook. However i doubt you can work in excel while the macro runs. It can allow the user to interact with the excel spreadsheet while the macro is running on the very same workbook.
Are you sure that you have no macro module in the excel spreadsheet. You can open a different application and work within it while the macro chunks away in excel in the background. How do i make a vba macro run silently in the background. 1st time when i am running the macro the first row in the visible filtered data is starting at cell address a4 and next time when i will run the macro it may be a6 3 the code is also selecting the 1st row which is a header row.
If so then some system level code is running in the background. To ensure the macro runs of the intended workbook see ilyaskazis post above. Of course the attention being paid to the macro by your system will probably slow down the response of the other program but this depends on the version of windows you are using on your system.