Ma ka
Posts: 75
Joined: 2011-02-25
|
If CvO_CheckHostApp() = "ohaExcel" Then
Dim frm As Pane = TryCast(CType(...AddinModule.CurrentInstance, .....AddinModule).AdxExcelTaskPanesCollectionItem1.TaskPaneInstance,Pane)
....
If CvO_CheckHostApp() = "ohaWord" Then
Dim frm As PaneWord = TryCast(CType(....AddinModule.CurrentInstance, .....AddinModule).AdxWordTaskPanesCollectionItem1.TaskPaneInstances, PaneWord
....
Iam not finding the AdxExcelTaskPanesCollectionItem1.TaskPaneInstance from the Excel Adv.Taskpane in the Word Adv. TaskpaneAdxWordTaskPanesCollectionItem1.TaskPaneInstances
in Excel there is TaskPaneInstance and in word it is missing to return the running instance? |
|
Ma ka
Posts: 75
Joined: 2011-02-25
|
OK,
the thing is .AdxWordTaskPanesCollectionItem1.CurrentTaskPaneInstance
Why?
Thanks |
|
Fedor Shihantsov
Guest
|
Hi,
Unlike Excel, Word can have several opened windows.
The CurrentTaskPaneInstance returns the current ADXWordTaskPane instance for the active window. |
|