Next Page button in Tabs

G

Guest

I've created different tabs to represent different pages of a survey. At the
end of each tab (page), I'd like to add a button that will skip to the next
tab (so that I don't have to scroll back up and click on the next tab. Is
this possible? I've looked through the different commands, but can't seem to
find anything.

Thank you, Mimi =)
 
D

Dirk Goldgar

Mimi said:
I've created different tabs to represent different pages of a survey.
At the end of each tab (page), I'd like to add a button that will
skip to the next tab (so that I don't have to scroll back up and
click on the next tab. Is this possible? I've looked through the
different commands, but can't seem to find anything.

Thank you, Mimi =)

Code along these lines should do the trick:

With Me.tabMyTabControl
If .Value = .Pages.Count - 1 Then
' It's the last page, so go back to the first page.
.Value = 0
Else
.Value = .Value + 1
End If
End With

Substitute the name of your own tab control for "tabMyTabControl".

It's also possible to get the focus to move automatically from the last
control on one page to the first control on the next page, if that's
what you want.
 

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