P
poolguard
i am creating an application that is available in outlook 2002, word 2002,
and excel 2002. my question is how can i tell what application i am in. i
use the connect.vb with the code below but the applicationObject is just a
System.__ComObject. I hope that makes sense.
Thanks
Dim applicationObject As Object
Public Sub OnDisconnection(ByVal RemoveMode As
Extensibility.ext_DisconnectMode, ByRef custom As System.Array) Implements
Extensibility.IDTExtensibility2.OnDisconnection
On Error Resume Next
If RemoveMode <>
Extensibility.ext_DisconnectMode.ext_dm_HostShutdown Then _
Call OnBeginShutdown(custom)
applicationObject = Nothing
End Sub
Private Sub MyButton_Click(ByVal Ctrl As
Microsoft.Office.Core.CommandBarButton, ByRef CancelDefault As Boolean)
Handles MyButton.Click
If MainForm Is Nothing Then
MainForm = New frmLauncher(applicationObject)
End If
MainForm.Show()
End Sub
and excel 2002. my question is how can i tell what application i am in. i
use the connect.vb with the code below but the applicationObject is just a
System.__ComObject. I hope that makes sense.
Thanks
Dim applicationObject As Object
Public Sub OnDisconnection(ByVal RemoveMode As
Extensibility.ext_DisconnectMode, ByRef custom As System.Array) Implements
Extensibility.IDTExtensibility2.OnDisconnection
On Error Resume Next
If RemoveMode <>
Extensibility.ext_DisconnectMode.ext_dm_HostShutdown Then _
Call OnBeginShutdown(custom)
applicationObject = Nothing
End Sub
Private Sub MyButton_Click(ByVal Ctrl As
Microsoft.Office.Core.CommandBarButton, ByRef CancelDefault As Boolean)
Handles MyButton.Click
If MainForm Is Nothing Then
MainForm = New frmLauncher(applicationObject)
End If
MainForm.Show()
End Sub