Button and tab

  • Thread starter Thread starter Jay
  • Start date Start date
J

Jay

Thanks in advance

A form with a 'Delete' button has two tabs, 'tab1' and 'tab2'.

(Goal)
In the tab2, 'Delete' button is greyed out and disabled.
In the tab1, 'Delete' button is enabled.
 
Thanks in advance

A form with a 'Delete' button has two tabs, 'tab1' and 'tab2'.

(Goal)
In the tab2, 'Delete' button is greyed out and disabled.
In the tab1, 'Delete' button is enabled.

You need two buttons, one on each tab page.
 
Thank you, K.P.

I am new to VBA area and I may not understand your idea.

When I open a Tab page, it has only five events: Click, Double Click, Mouse
Up,Mouse Down, Mouse Move.

Thank again.
 
Yes, Tab page has only this five events, but Tab control has nine events:
Change, Click, DblClick, KeyDown, KeyPress, KeyUp, MouseDown, MouseMove,
MouseUp.

Use Change event of Tab control.

K.P.
 

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

Back
Top