Using the docking pane activex with Excel |
Post Reply |
Author | |
Armin
Newbie Joined: 13 April 2007 Location: Germany Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 13 April 2007 at 6:11am |
Dear All,
has anybody ever tried to link the Docking Pane ActiveX as a docked window into the Excel desktop by using VBA?
I am using the trial version of Xtreme SuitePro and don't have much experience yet with these tools.
Any hint of how to achieve it is highly appreciated.
Thanks in advance
Armin
|
|
Armin
Newbie Joined: 13 April 2007 Location: Germany Status: Offline Points: 2 |
Post Options
Thanks(0)
|
Dear All,
regarding my previous request, please let me specify what I want to achieve:
You may get an idea of what I mean by looking at this:
This add-in is provided by a russian company. It was programmed using Delphi and works with Excel 2000 onwards. Unfortunately they do not provide this technique to others.
I therefore tried to find a solution on my own and thought that the Docking Pane component would be a good starting point.
In the Excel VBE I made a reference to the Xtreme Docking Pane Control (->Tools -> References ...) and typed in the following code into a standard module:
Option Explicit
' ' Retrieve a handle to the top-level window (Parent is always the Desktop) Private Declare Function FindWindow Lib "User32" Alias "FindWindowA" ( _ ByVal lpClassName As String, _ ByVal lpWindowName As String) As Long ' ' Retrieve a handle to the top-level window in other parents Private Declare Function FindWindowEx Lib "User32" Alias "FindWindowExA" ( _ ByVal hWndParent As Long, _ ByVal hwndChildAfter As Long, _ ByVal lpClassName As String, _ ByVal lpWindowName As String) As Long Sub xlDockPane() Also syntactically correct, the code above doesn't work.
Thus, any hints are very welcome.
BRGDS
Armin
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |