susancur
06-10-2024, 11:33 PM
Hello VBA community!
I come to you today with (ideally) a simple dilemma with (hopefully) a simple solution.
Question: Based on this scenario and the problem below, is there a way to either (1) push a write while the user writes into a cell without interrupting their input or (2) making the macro wait while a user inputs data into a cell as part of an unrelated process?
Scenario: I have a created a fully automated process that executes requests in an external database and returns results back into a log in Excel. The program takes several hours to complete but I have other tasks I must complete in other Excel spreadsheets.
Problem: While the program is running, data entry in other spreadsheets appear to suspend the connection of the Excel object write. This makes the log have skipped items. This occurs when either (1) highlighting a cell or (2) taking focus for user input into a cell. This results in cells not being written to while writing in another cell.
I come to you today with (ideally) a simple dilemma with (hopefully) a simple solution.
Question: Based on this scenario and the problem below, is there a way to either (1) push a write while the user writes into a cell without interrupting their input or (2) making the macro wait while a user inputs data into a cell as part of an unrelated process?
Scenario: I have a created a fully automated process that executes requests in an external database and returns results back into a log in Excel. The program takes several hours to complete but I have other tasks I must complete in other Excel spreadsheets.
Problem: While the program is running, data entry in other spreadsheets appear to suspend the connection of the Excel object write. This makes the log have skipped items. This occurs when either (1) highlighting a cell or (2) taking focus for user input into a cell. This results in cells not being written to while writing in another cell.