Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Which Tab is Selected Tab Control 1

Status
Not open for further replies.

Tommy408

Programmer
Apr 30, 2006
53
US
How can I find out which tab is selected?
 
Hi, Tommy408,

The .Value property of the tab control is the same as the index of the currently selected tab page.

Ken S.
 
Try something like this:

Dim intTabNumber As Integer
Dim strTabName As String

intTabNumber = Me!tabControlName.Value
strTabName = Me!tabControlName.Pages(intTabNumber).Caption
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top