Hi
Option Button value give either TRUE or FALSE and not ""
so try
Code:If Not (optAAA.Value) + (optBBB.Value) + (optCCC.Value) Then optCCC.SetFocus MsgBox "Pls choose product" Exit Sub End If
Hi
Option Button value give either TRUE or FALSE and not ""
so try
Code:If Not (optAAA.Value) + (optBBB.Value) + (optCCC.Value) Then optCCC.SetFocus MsgBox "Pls choose product" Exit Sub End If
Cheers !
Excel Range to BBCode Table
Use Social Networking Tools If You Like the Answers !
Message to Cross Posters
@ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)
Thank you very much sir your code works fine
Heres the code I use before and put 'Test for incomplete entry
But I will use your code
Code:If optAAA = True Then ActiveCell.Offset(0, 6).Value = "AAA" ElseIf optBBB = True Then ActiveCell.Offset(0, 6).Value = "BBB" ElseIf optCCC = True Then ActiveCell.Offset(0, 6).Value = "CCC" Else ActiveCell.Offset(0, 6).Value = "" fraProduct.SetFocus MsgBox "Pls Choose product" Exit Sub End If
How about in checkbox? Any ideas sir
Last edited by Excel Fox; 05-21-2013 at 08:32 AM. Reason: Quote Removed
Bookmarks