tab control issue

S

sgyan1

I have a tab control "tabCtlClass"
"tabCtlClass" has 2 pages "tabGroup", "tabPrivate"

When a Command Button (on main form) is clicked, the code needs to determine
which tab page is selected (either tabGroup or tabPrivate).

Could anyone help me implement this issue in VBA code?

Thanks in Advance :)


Daniel Yang
 
R

Rick Brandt

sgyan1 said:
I have a tab control "tabCtlClass"
"tabCtlClass" has 2 pages "tabGroup", "tabPrivate"

When a Command Button (on main form) is clicked, the code needs to
determine which tab page is selected (either tabGroup or tabPrivate).

Could anyone help me implement this issue in VBA code?

Thanks in Advance :)


Daniel Yang

The TabControl has a Value property. That will correspond to the index number
of the currently selected page.
 
Top