Tab name or tag

J

John Thomas

Is there a way to obtain the tab name or its tag with code, I can get its
value with the following code, but can only get the main forms name or tag
so far with other code.

var6 = Me.TabCtl149.Value

thanks John
 
D

Dirk Goldgar

John Thomas said:
Is there a way to obtain the tab name or its tag with code, I can get
its value with the following code, but can only get the main forms
name or tag so far with other code.

var6 = Me.TabCtl149.Value

thanks John

You could try:

With Me.TabCtl149
strPageName = .Pages(.Value).Name
strPageTag = .Pages(.Value).Tag
End With
 

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