tab control issue

G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top