<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Using the docking pane activex with Excel</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : Using the docking pane activex with Excel]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 28 Apr 2026 23:48:19 +0000</pubDate>
  <lastBuildDate>Fri, 13 Apr 2007 10:55:08 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=6857</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Using the docking pane activex with Excel :  Dear All,  regarding my previous...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6857&amp;PID=21921&amp;title=using-the-docking-pane-activex-with-excel#21921</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2926">Armin</a><br /><strong>Subject:</strong> 6857<br /><strong>Posted:</strong> 13 April 2007 at 10:55am<br /><br /><FONT face="Courier New, Courier, mono" size=1><FONT color=#0000ff><DIV><FONT face="Arial, Helvetica, sans-serif" size=2><FONT color=#000000>Dear All,</FONT></FONT></DIV><DIV><FONT face="Arial, Helvetica, sans-serif" size=2><FONT color=#000000></FONT></FONT>&nbsp;</DIV><DIV><FONT face="Arial, Helvetica, sans-serif" size=2><FONT color=#000000>regarding my previous request, please let me specify what I want to achieve:</FONT></FONT></DIV><DIV><FONT face="Arial, Helvetica, sans-serif" size=2><FONT color=#000000></FONT></FONT>&nbsp;</DIV><DIV><FONT face="Arial, Helvetica, sans-serif" size=2><FONT color=#000000>You may get an idea of what I mean by looking at this: </DEFANG_SPAN><a href="http://www.ablebits.com/excel-worksheets-manager-addins/index.php" target="_blank"><DEFANG_SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"><FONT color=#800080>http://www.ablebits.com/excel-worksheets-manager-addins/index.php</FONT></A></FONT></DIV><DIV>&nbsp;</DIV><DIV><FONT face="Arial, Helvetica, sans-serif" size=2>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.</FONT></DIV><DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV><DIV><FONT face=Arial size=2>I therefore tried to find a solution on my own and thought that the Docking Pane component would be a good starting point.</FONT></DIV><DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV><DIV><FONT face=Arial size=2>In the Excel VBE I made a reference to the Xtreme Docking Pane Control (-&gt;Tools -&gt; References ...) and typed in the following code into a standard module:</FONT></DIV><DIV>&nbsp;</DIV></FONT><DIV>Option Explicit<BR></FONT><FONT color=#009900>'<BR>' Retrieve a handle to the top-level window (Parent is always the Desktop)<BR></FONT><FONT color=#0000ff>Private Declare Function</FONT> FindWindow <FONT color=#0000ff>Lib </FONT>"User32" <FONT color=#0000ff>Alias </FONT>"FindWindowA" ( _<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT color=#0000ff>ByVal </FONT>lpClassName <FONT color=#0000ff>As String</FONT>, _<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT color=#0000ff>ByVal </FONT>lpWindowName <FONT color=#0000ff>As String</FONT>) <FONT color=#0000ff>As Long</FONT><BR><FONT color=#009900>'<BR>' Retrieve a handle to the top-level window in other parents<BR></FONT><FONT color=#0000ff>Private Declare Function</FONT> FindWindowEx <FONT color=#0000ff>Lib </FONT>"User32" <FONT color=#0000ff>Alias </FONT>"FindWindowExA" ( _<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT color=#0000ff>ByVal </FONT>hWndParent <FONT color=#0000ff>As Long</FONT>, _<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT color=#0000ff>ByVal </FONT>hwndChildAfter <FONT color=#0000ff>As Long</FONT>, _<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT color=#0000ff>ByVal </FONT>lpClassName <FONT color=#0000ff>As String</FONT>, _<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT color=#0000ff>ByVal </FONT>lpWindowName <FONT color=#0000ff>As String</FONT>) <FONT color=#0000ff>As Long</FONT></FONT></DIV><P><FONT face="Courier New, Courier, mono" size=1><FONT color=#0000ff>Sub </FONT>xlDockPane()<BR>&nbsp;&nbsp;&nbsp; <FONT color=#0000ff>Dim </FONT>xlAppHandle <FONT color=#0000ff>As Long<BR></FONT>&nbsp;&nbsp;&nbsp; <FONT color=#0000ff>Dim </FONT>xlDeskHandle <FONT color=#0000ff>As Long</FONT><BR>&nbsp;&nbsp;&nbsp; <FONT color=#0000ff>Dim </FONT>DockingPaneManager <FONT color=#0000ff>As </FONT>XtremeDockingPane.DockingPane<BR>&nbsp;&nbsp;&nbsp; <FONT color=#0000ff>Dim </FONT>A <FONT color=#0000ff>As </FONT>XtremeDockingPane.Pane<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; xlAppHandle = FindWindow("XLMAIN", Application.Caption)<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; <FONT color=#0000ff>If </FONT>xlAppHandle = 0 <FONT color=#0000ff>Then</FONT><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xlAppHandle = FindWindow("XLMAIN", vbNullString)<BR>&nbsp;&nbsp;&nbsp; <FONT color=#0000ff>End If</FONT><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; <FONT color=#009900>' find the Excel desktop</FONT><BR>&nbsp;&nbsp;&nbsp; xlDeskHandle = FindWindowEx(xlAppHandle, 0, "XLDESK", vbNullString)<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; <FONT color=#0000ff>Set </FONT>DockingPaneManager = <FONT color=#0000ff>New </FONT>DockingPane<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; DockingPaneManager.AttachToWindow xlDeskHandle<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; <FONT color=#0000ff>Set </FONT>A = DockingPaneManager.CreatePane(1, 400, 400, DockLeftOf, <FONT color=#0000ff>Nothing</FONT>)<BR><FONT color=#0000ff>End Sub</P><DIV></DIV><DIV><FONT face="Arial, Helvetica, sans-serif" color=#000000 size=2>Also syntactically correct, the code above doesn't work. <img src="https://forum.codejock.com/smileys/smiley5.gif" border="0"></FONT></DIV><DIV><FONT face=Arial color=#000000 size=2></FONT>&nbsp;</DIV><DIV><FONT face=Arial color=#000000 size=2>Thus, any hints&nbsp; are very welcome.</FONT></DIV><DIV><FONT face=Arial color=#000000 size=2></FONT>&nbsp;</DIV><DIV><FONT face=Arial color=#000000 size=2>BRGDS</FONT></DIV><DIV><FONT face=Arial color=#000000 size=2>Armin</FONT></DIV></FONT></FONT>]]>
   </description>
   <pubDate>Fri, 13 Apr 2007 10:55:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6857&amp;PID=21921&amp;title=using-the-docking-pane-activex-with-excel#21921</guid>
  </item> 
  <item>
   <title><![CDATA[Using the docking pane activex with Excel : Dear All,     has anybody...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6857&amp;PID=21909&amp;title=using-the-docking-pane-activex-with-excel#21909</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2926">Armin</a><br /><strong>Subject:</strong> 6857<br /><strong>Posted:</strong> 13 April 2007 at 6:11am<br /><br /><FONT face="Arial, Helvetica, sans-serif">Dear All,<DIV>&nbsp;</DIV><DIV><DIV></DIV><DIV></DIV><DIV></DIV>has anybody ever tried to link the Docking Pane ActiveX as a docked window into the Excel desktop by using VBA?</DIV><DIV>&nbsp;</DIV><DIV>I am using the trial version of Xtreme SuitePro and don't have much experience yet with these tools. <img src="https://forum.codejock.com/smileys/smiley9.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>Any hint of how to achieve it is highly appreciated. <img src="https://forum.codejock.com/smileys/smiley1.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>Thanks in advance</DIV><DIV>Armin</DIV><DIV>&nbsp;</DIV></FONT>]]>
   </description>
   <pubDate>Fri, 13 Apr 2007 06:11:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6857&amp;PID=21909&amp;title=using-the-docking-pane-activex-with-excel#21909</guid>
  </item> 
 </channel>
</rss>