Microsoft Excel: Object Pop-up Error

Pinaceous

Well-known Member
Joined
Jun 11, 2014
Messages
1,113
Office Version
  1. 365
Platform
  1. Windows
Good Day All,

I'm getting an error message in respect to:

MSEUntitled.jpg


I believe it is because if the curser is engaged upon the Excel sheet without activation, Microsoft Excel provides this pop-up.

As so:

SBUntitled.png


My question is how do I prevent this from happening by way of a VBA code?

Many thanks,
pinaceous
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
CBBCapture.JPG


Here is another version of this error message pop-up provided by Microsoft Excel.
 
Upvote 0
My question is how do I prevent this from happening by way of a VBA code?
The user must exit edit mode. :)
Is the client code that is trying to access the workbook via automation in the same machine (maybe running in another excel instance) ?
 
Upvote 0
The user must exit edit mode. :)
Is the client code that is trying to access the workbook via automation in the same machine (maybe running in another excel instance) ?
Hi Jaafar,

It appears that the client code is trying to access the workbook in the same machine.

How can this possible be prevented from happening upon the sheet, if the user forgets to exit the edit mode?

Is there a way to create a sub to force exit the edit mode upon the activation of the pop-up described above or to set it on a 60-second timer?

Thanks,
pinaceous
 
Upvote 0
Ah I see. Do you know if I can suppress that popup somehow?

I've tried everything that I can think of in regards to
VBA Code:
 Application.ScreenUpdating = False
ect.

Please let me know.

Thank you!
pinaceous
 
Upvote 0
Is there a way to tie in a vba macro when that excel pop up gets displayed?

For example, if popup gets displayed then goto cell A1?
 
Upvote 0
How can this possible be prevented from happening upon the sheet, if the user forgets to exit the edit mode?
Take a look at the use of the CoRegisterMessageFilter api in this post

Is there a way to create a sub to force exit the edit mode upon the activation of the pop-up described above or to set it on a 60-second timer?
You can use some kind of timer such as GetTickCount and then GetLastInputInfo to monitor user inactivity but I haven't seen code that consistently forces excel to exit edit mode . This thread may be of interest to you for monitoring user inactivity.

Also, bear in mind that the automation error you are getting doesn't only happen when excel is in edit mode. It will also happen if the user leaves excel in modal mode such as when a MsgBox is left displayed on the screen or simply when a modal userform or a builtin modal dialog such as the Data validation dialog, Protect Sheet dialog, etc are left on display.
 
Upvote 0

Forum statistics

Threads
1,215,268
Messages
6,123,965
Members
449,137
Latest member
yeti1016

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top