Print Page | Close Window

TabControl SelectedChanged event on VBA

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=4575
Printed Date: 17 November 2024 at 7:29am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: TabControl SelectedChanged event on VBA
Posted By: celebre
Subject: TabControl SelectedChanged event on VBA
Date Posted: 11 July 2006 at 5:47pm
Public Event SelectedChangedByVal Item As TabControlItem )
 
I'm trying to catch that event in VBA with:
 
Private Sub TabControl1_SelectedChanged(ByVal Item As TabControlItem)
    MsgBox "Don't Work"
End Sub
 
But I get a mismatch declaration error!?
 
What's the problem?



Replies:
Posted By: Oleg
Date Posted: 12 July 2006 at 12:06pm
Hello,
 
for VBA try "Item As Object" in events parameter


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: celebre
Date Posted: 12 July 2006 at 3:41pm
Thx for the tip, now It's recognized LOL



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