Jaafar Tribak
Well-known Member
- Joined
- Dec 5, 2002
- Messages
- 9,852
- Office Version
- 2016
- Platform
- Windows
Hi all
If you call GetObject on a workbook opened in another excel instance ( workbook opened on the same pc or on a remote one) you get a pointer to that workbook ... This works fine . However, if the second workbook happens to be in edit mode or has a modal dialogbox on display (such as the Data Validation dialog) at the time the call to GetObject is made, the calling application hangs and all user interaction becomes impossible until the other workbook comes out of edit mode or the dialogbox is closed.
So, in order to prevent this problem from happening, it would be useful to check beforehand if the called workbook is in an edit mode or is displaying a dialog .. Anybody has an idea how to do that ? or maybe another workaround ?
Regards.
If you call GetObject on a workbook opened in another excel instance ( workbook opened on the same pc or on a remote one) you get a pointer to that workbook ... This works fine . However, if the second workbook happens to be in edit mode or has a modal dialogbox on display (such as the Data Validation dialog) at the time the call to GetObject is made, the calling application hangs and all user interaction becomes impossible until the other workbook comes out of edit mode or the dialogbox is closed.
So, in order to prevent this problem from happening, it would be useful to check beforehand if the called workbook is in an edit mode or is displaying a dialog .. Anybody has an idea how to do that ? or maybe another workaround ?
Regards.
Last edited: