General Form Building process in VBA

mrlemmer11

New Member
Joined
Jun 8, 2015
Messages
32
Hello,

This is mainly and general information/reference seeking question.

What is the standard for good form building regarding toggle'ing visibilities and what not. What I mean is if I have 10 labels, with 10 text box's for user input and 10 submit button and I want the only the first group (label, box, button) to show until the user enters something and clicks submit, and upon submission, the second group shows. This repeats until the last group with the final submit button... My question is this, should I build the form with all 10 groups listed and 9 of the 10 groups not visible.... or should I build it so that when the user submits group1 the code builds and adds the second groups etc...

Like I said, I can get it done with having everything built upon form launch, just trying to figure out good theory on this. Thanks everyone.
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
I would say create a 10 and hide/unhide as necessary. That's much easier than coding them on the fly.

but, I'd also ask, do you need 10 different versions? Can you just re-purpose one set 10 different ways? For the first round, you set Label.Caption = "Question X" and then for the second round you reset the same caption to "Question Y", etc.
 
Upvote 0

Forum statistics

Threads
1,214,991
Messages
6,122,628
Members
449,095
Latest member
bsb1122

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