Share via

Disable user input while executing automation code

EuroEager2008 171 Reputation points
2024-01-02T08:53:18.6+00:00

I want to run some C# code from a separate process (separate from MS 365 Excel) operating on an (MS 365) Excel process.

Thus out-of-process automation.

Is it possible to absolutely disable any Excel user input while the code is running? (preferably without making the Excel app invisible)

Microsoft 365 and Office | Development | Other
Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments

1 answer

Sort by: Most helpful
  1. EuroEager2008 171 Reputation points
    2024-01-02T10:36:51.4+00:00

    Perhaps I just found it, looks like the Application.Interactive property is meant for exactly this.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.