please let me know its a NetOffice Tools Addin? in other words your addin class inherites from COMAddin ???
(if its a tool addin you can create your own singleton very easy with 5 code lines to imitate ThisAddin)
NetOffice spend a feature for VB developers to copy and paste VBA code as easy as possible.
its one line more in your import statements(Word example):
Imports NetOffice.WordApi.GlobalHelperModules.GlobalModule
Now you can use:
Dim x As Object = Application.Selection
"but in this problem, it doesn't work."
"it doesnt work "is not a good error description all the time ;) what happen in detail ?
*Sebastian
(if its a tool addin you can create your own singleton very easy with 5 code lines to imitate ThisAddin)
NetOffice spend a feature for VB developers to copy and paste VBA code as easy as possible.
its one line more in your import statements(Word example):
Imports NetOffice.WordApi.GlobalHelperModules.GlobalModule
Now you can use:
Dim x As Object = Application.Selection
"but in this problem, it doesn't work."
"it doesnt work "is not a good error description all the time ;) what happen in detail ?
*Sebastian