OWC11 Spreadsheet - Automation Error - SheetChange Event

V

vha

Anyone run into this defect? I know it is related to unqualified objects.

"Automation Error - the object invoked has disconnected from its clients"

It occurs in a simple test of the sheet change event. If I delete a cell's
contents with the delete key in an unprotected section of a protected sheet,
I get this error and the Excel instance hangs. It only occurs if I flip
protection on and off.

Event code
Private Sub ssTest_SheetChange(ByVal Sh As OWC11.Worksheet, ByVal Target As
OWC11.Range)

Sh.Unprotect

MsgBox (Sh.Application.Name)

Sh.Protect

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top