Hello -
I'm fairly new to Excel so forgive me if these are noob questions.
I have a userform which I would not only like to declare variables for, but would also like to state what they stand for. Next, I would like to be able to refer back to them throughout the whole userform based off of Checkbox values. For example in declaring all variables in the userform:
Please Login or Register to view this content.
Now, if a checkbox's value is true, I would like to make the above variables what they are declared above and place them into a text box. If they are false, I would like to make them blank (Var1 = "" for example). Lastly, when the checkbox value is false, I want to remove the specific variable's text out of the text box (making it ""). I have attempted to do this by using the following:
Please Login or Register to view this content.
It's kind of like an on/off switch code for each checkbox. Place the veriable's text in the text box if checked, remove it (only that text box's verbiage) if unchecked, but leave all other checkbox verbiage in the text box.
It is going to be labor intensive if I have to create 10 different checkbox true/false subs, on 7 different tabs, in this userform. From what I see, I am going to have to create a sub for every checkbox and include similar code, like the code above, to make this work with every single variable and checkbox. There is going to be 1 variable for every checkbox...for a total of 10 checkboxes per tab, 1 text box per tab, and about 7 tabs.
Is there an easier way? Am I doing this completely wrong? Any help is greatly appreciated. Thank you.
Bookmarks