Msgbox to pop-up based on Checkbox's value

karti1986

Board Regular
Joined
Jun 24, 2014
Messages
60
Hi All

I did check this thread related to my question here.. (https://www.mrexcel.com/forum/excel...e-vba-look-checkbox-if-its-checked-not-3.html)

I have tried the below option I have tried and also tried few other things mentioned in the above thread, nothing seem to work for me.

My check box is through Developer -> Controls -> Form Controls -> Check Box

If ActiveSheet.CheckBoxes("TechTowerChk").Value = xlOn Then
MsgBox "Work with Person X"
End If

Is there anything im doing wrong here. Thanks in Advance!

Regards
KG
 
Is the value in F6 changed by Formula?
If so, Change Event will not trigger.

Dave
 
Last edited:
Upvote 0

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
No Dave, thats a drop down.


I assume you mean data validation?

If so I suspect that this part of your change event code

Code:
If ActiveSheet.CheckBoxes("CustomerTechTowerChk").Value = xlOn Then
        MsgBox "Work with Person X"
    End If

needs to be assigned to the checkbox click event


Code:
Sub CustomerTechTowerChk_Click()
    If ActiveSheet.CheckBoxes("CustomerTechTowerChk").Value = xlOn Then
        MsgBox "Work with Person X"
    End If
End Sub

Dave
 
Last edited:
Upvote 0
Thanks Dave and Everyone,

I got this working by linking the checkboxes to another cell in another Sheet. Assigned the "pro" Macro to the checkbox
--------------------------------------------------------------------------------------------------------------------------------------------
Sub pro()
If ActiveWorkbook.Sheets("Support_Sheet").Range("B27").Value = "True" Then
Call DisplayName
End If


End Sub


---------------------------------------------------------------------------------------------------------------------------------------------
Sub DisplayName()
Application.EnableEvents = True


MsgBox "Work with Regional Leaders for effort and cost customization"
End Sub

--------------------------------------------------------------------------------------

Regards
KG
 
Upvote 0

Forum statistics

Threads
1,223,925
Messages
6,175,422
Members
452,641
Latest member
Arcaila

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top