Message 1 of 5
Get focus back on Inventor with VBA

Not applicable
06-18-2018
06:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've created a VBA macro that is initiated from Inventor. The macro calls for a FileMaker script to be run on the user's machine.
After the FileMaker script runs, Inventor gets the result and then displays a dialog box where the user selects "yes" or "no".
I can't seem to get the focus back onto Inventor after that script runs without manually clicking back into the Inventor window (focus stays with FileMaker after the script runs). I'd like to be able to hit "enter" to automatically select "yes" on the dialog box, but I have to get focus back on the Inventor window for that to happen.
Anyone know how to get VBA to steal focus back to Inventor?
Windows 10 Pro
VBA 7.1
Inventor 2017
FileMaker Pro 16