Question about frames and controll buttons

Ganther

New Member
Joined
Nov 11, 2002
Messages
10
Ok I have a userform with 10 control buttons each control button will make a frame visible the user from has 13 frames in total but only 10 will be effected by the control buttons. The 10 frames will allow the user to enter specific data. It sounds simple but here is the issue.

When the control button1 is clicked I need the corresponding frame let’s say frame1 to be visible and enabled, so for the control buttons Click I have

frame1.Visable = True
frame 1.Enable = True

That I figured out, and if I click control button 2, frame 2 becomes visible which is want I want. What is stumping me is if I click control button 1 again, frame 2 stays visible and on top.

I don’t want to have to enter code for all 10 control buttons I need away either using class modules so that when a control button is clicked that frame becomes visible and enable while the other 9 frames are hidden and not enabled while the other 3 frames are always visible. I am not a programmer and I am trying to teach myself how to do this. I am not looking for someone to write it for me but more or less to give a push in the right direction.

Am I right about using a class module to control the 10 buttons and what happens when they are clicked. Where can I find the syntax for the code I need to be using

I figure somehow when a button is clicked it will have to register as a value so that that value can be placed in the class module and that value corresponds to a frame while the rest of the code tell the other frames to be hidden other than the 3 constant frames..

Any help would be great

Thanks in advance
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Forum statistics

Threads
1,224,603
Messages
6,179,855
Members
452,948
Latest member
UsmanAli786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top