unable to get object property of oleobject class
<p>I'm trying to migrate an excel project from office 2003 to office 2010, and I keep hitting errors, trying to resolve them I'm not at an error that reads:</p>

<pre><code>Unable to get Object Property of OleObjects Class
</code></pre>

<p>The line that generates this error is at <code>SrcContainer = pTitleSheet.OLEObjects(1)</code> where pTitleSheet is a microsoft excel object with the following code:</p>

<pre><code>Option Explicit

Private Sub MasterTitleBox_BeforeContextMenu(ByVal x As Long, ByVal y As Long, ByVal Menu As OWC11.ByRef, ByVal Cancel As OWC11.ByRef)
  'MsgBox CStr(x) + " " + CStr(y)
  Cancel = True

End Sub
</code></pre>

<p>I don't know how to debug the error or find out why it cant find an OLEObject as the code ran in Office 2003.</p>

<p>I furthermore have the problem, that I can't see the object that I have posted code for above, meaning that I have no option to "view object" see screenshot:
<a href="https://i.stack.imgur.com/7E0oK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7E0oK.png" alt="enter image description here"></a></p>