Print Page | Close Window

Type Mismatch error docking Pane

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=3666
Printed Date: 02 July 2024 at 9:17am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Type Mismatch error docking Pane
Posted By: Shawshank
Subject: Type Mismatch error docking Pane
Date Posted: 17 February 2006 at 1:51am

The following code will always yield an error stating "Type Mismatch":

Dim PaneNew As Pane

Set Pane = Me.DockingPaneManager.CreatePane(FNP_DOCK_PANE, 200, 200, DockLeftOf, Nothing)

If I change the data type of PaneNew to a variant I receive no error. It appears to me the code I'm using should work and does on a older copy of the same code.

Is there something about this code that should be producing this error?




Replies:
Posted By: kylechen
Date Posted: 17 February 2006 at 2:16am

Try

Dim PaneNew As XtremeDockingPane.Pane



Posted By: Shawshank
Date Posted: 17 February 2006 at 9:05am

That did the trick, thanks! I realized later after fighting with it that the error started after I added the Excel 11 object library which also contains a Pane object. Even when selecting both Pane objects the error would occur until a explicit reference, which you suggested, corrected the problem.

Thanks!




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net