Type Mismatch error docking Pane |
Post Reply |
Author | |
Shawshank
Senior Member Joined: 16 October 2005 Status: Offline Points: 117 |
Post Options
Thanks(0)
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? |
|
kylechen
Groupie Joined: 29 November 2004 Status: Offline Points: 57 |
Post Options
Thanks(0)
|
Try Dim PaneNew As XtremeDockingPane.Pane |
|
Shawshank
Senior Member Joined: 16 October 2005 Status: Offline Points: 117 |
Post Options
Thanks(0)
|
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! |
|
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 |