How to disable mouse interaction during VBA macro running?

How to disable mouse interaction during VBA macro running?

lzs013
Advocate Advocate
2,784 Views
1 Reply
Message 1 of 2

How to disable mouse interaction during VBA macro running?

lzs013
Advocate
Advocate

How to disable mouse interaction during VBA macro running?

The code that disables mouse interaction in Excel is:Application.Interactive = False

What is the code in Inventor VBA?

0 Likes
Accepted solutions (1)
2,785 Views
1 Reply
Reply (1)
Message 2 of 2

BrianEkins
Mentor
Mentor
Accepted solution

Try the UserInteractionDisabled property which is on the UserInterfaceManager object, which you get from the Application object.

ThisApplication.UserInterfaceManager.UserInteractionDisabled = True
---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com