G
Guest
I have a userform that will have a list of e-mail address. Using checkboxes if the user clicks in it I want capture that e-mail and use it in another part of my script. The script that I am useing is changing the caption of the checkbox and I am using the message window for testing purposes to see what is happening. So if the box is checked it would capture that e-mail adress and use later in the script if it is unchecked that e-mail address does not get used. I am posting the script that I currently have. I think that I am close but I am missing something. Thank
Sub bOk_Click(
With Me.CheckBox
If Me.CheckBox1.Value = True The
Me.Controls("Checkbox1").Caption = "It's checked
MsgBox Me.Controls("Checkbox1").Captio
Els
Me.CheckBox1.Value = Fals
Me.Controls("Checkbox1").Caption = "Unchecked
MsgBox Me.Controls("Checkbox1").Captio
End I
End Wit
End Su
Sub bOk_Click(
With Me.CheckBox
If Me.CheckBox1.Value = True The
Me.Controls("Checkbox1").Caption = "It's checked
MsgBox Me.Controls("Checkbox1").Captio
Els
Me.CheckBox1.Value = Fals
Me.Controls("Checkbox1").Caption = "Unchecked
MsgBox Me.Controls("Checkbox1").Captio
End I
End Wit
End Su