Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Setup Userform

I have a Userform with 2 comboboxes (date and month), 4
checkboxes and 4 textboxes. Depending on the selection of
the 4 checkboxes I want to the 4 textboxes to represent
text (or not).

In total there are 14 posibilities of what needs to be
shown. How can I program with a VBA routine whether the
textboxes need to show a certain text, depending on
whether the checkboxes are true or false?

I want to prevent loads of if .. then structures like:
"If checkbox1 = true then
If checkbox2 = true then
If checkbox3 = true then
.....
textBox1.Text = "Text1"
Else......"

1) Are boolean variables to check state of checkboxes
easier to use to get textboxes to represent text (or not)?

2) How can I get default text of comboboxes to be shown in
Textbox? If I have on Userform_Initialize():

combobox1.Value = Format(Ayer, "d")
combobox2.Value = Format(Ayer, "mmm")

and
textbox1.Text = combobox1.Value

Then on showing the userform, only the combobox values are
shown with dates, but not the textboxes.

Thanks in advance

Martin


Yours sincerely

Martin
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to setup Darlene Charts and Charting in Excel 0 October 9th 08 07:43 PM
Changes in my setup? Mike Rogers[_2_] Excel Discussion (Misc queries) 3 November 11th 07 05:47 PM
Setup cmorga20 Excel Discussion (Misc queries) 1 July 13th 06 08:15 PM
setup Bonzo Excel Worksheet Functions 2 March 26th 05 01:10 PM
Setup Userform Martin Los Excel Programming 1 November 28th 03 10:07 AM


All times are GMT +1. The time now is 07:50 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"