LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default is there not a simpler way


I have 3 Checkboxes each with its own procedures, that is linked to a
command button, like below, but when you select any combination of the
boxes a Msgbox: must pop up saying please select only 1 checkboxs at a
time.
How do i do that?

Private Sub CommandButton6_Click()
If CheckBox1 = True And CheckBox2 = False And CheckBox4 = False Then
Sheet14.Activate
Unload UserForm1
Else
End If

If CheckBox2 = True And CheckBox1 = False And CheckBox4 = False Then
Sheet6.Activate
Unload UserForm1
Else
End If

If CheckBox4 = True And CheckBox1 = False And CheckBox2 = False Then
Sheet1.Activate
Call RunProgramSequence1
Else
End If

End Sub

'MsgBox "Please make only one 'Planning' selection" & Err.Description,
vbExclamation, "AI-Program: Power Utility Pack 2006"


--
T.c.Goosen1977
------------------------------------------------------------------------
T.c.Goosen1977's Profile: http://www.excelforum.com/member.php...o&userid=35895
View this thread: http://www.excelforum.com/showthread...hreadid=558313

 
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
is there a simpler way to do this formula? Jenna Excel Worksheet Functions 5 March 1st 10 10:57 PM
VBA code simpler? mohavv Excel Discussion (Misc queries) 4 December 2nd 07 06:39 AM
How can I make this simpler? Sethaholic[_10_] Excel Programming 3 July 13th 05 08:20 PM
Need to make this simpler. Jack Excel Programming 2 September 21st 04 08:21 PM
Lil Simpler ksnapp[_16_] Excel Programming 3 March 4th 04 12:32 AM


All times are GMT +1. The time now is 10:29 AM.

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

About Us

"It's about Microsoft Excel"