J
Jeremy Gollehon
Hi. I use the following code in Excel and Word to remove my custom menus
when I close my workbooks or documents. For some reason it crashes Visio
when doing the same thing. Is this known problem? Is there a workaround?
Thanks.
-Jeremy
-------------------------------------------------------------------
Private Sub Document_BeforeDocumentClose(ByVal doc As IVDocument)
On Error Resume Next
With Application.CommandBars.ActiveMenuBar
.Controls("NameOfMenu").Delete
End With
End Sub
-------------------------------------------------------------------
when I close my workbooks or documents. For some reason it crashes Visio
when doing the same thing. Is this known problem? Is there a workaround?
Thanks.
-Jeremy
-------------------------------------------------------------------
Private Sub Document_BeforeDocumentClose(ByVal doc As IVDocument)
On Error Resume Next
With Application.CommandBars.ActiveMenuBar
.Controls("NameOfMenu").Delete
End With
End Sub
-------------------------------------------------------------------