Connecting Tech Pros Worldwide Help | Site Map

How to identify TabControl index?

  #1  
Old November 13th, 2005, 07:05 AM
deko
Guest
 
Posts: n/a
Private Sub tabTools_Change()
Debug.Print Me.tabTools.Pages.Item(0)
End Sub

This always prints 0. How do I get the Tab/Page that is clicked, or better
yet, that is currently active?

Thanks in advance.


  #2  
Old November 13th, 2005, 07:09 AM
Janross
Guest
 
Posts: n/a

re: How to identify TabControl index?


>[color=blue]
>Private Sub tabTools_Change()
> Debug.Print Me.tabTools.Pages.Item(0)
>End Sub
>
>This always prints 0. How do I get the Tab/Page that is clicked, or better
>yet, that is currently active?
>[/color]

Try this:

Private Sub Tabtools_Change()
Debug.Print Me!Tabtools.Value
End Sub


Remember that the first one is 0, and they go up from there.

HTH

Jan
Jan Stempel
Stempel Consulting
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Set Focus to textbox on tab control Henry Jones answers 3 October 7th, 2006 07:25 AM
How to identify TabControl index? deko answers 3 November 13th, 2005 07:06 AM