![]() |
|
#1
|
|||
|
|||
|
Hello, I want to make this code working on my Userform1, which has checkbox in It. Userform1 is activated with macro1(Userform1.Show) on worksheet (button). Code works great wih no Userfom :
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim blnValue As Boolean
Dim shpCB As Shape
If Target.Count = 1 Then
If Not Intersect(Target, Range("C4,C6")) Is Nothing Then
blnValue = WorksheetFunction.CountA(Range("C4,C6")) = 2
For Each shpCB In ActiveSheet.Shapes
If shpCB.Name Like "Check*" Then
shpCB.ControlFormat.Value = blnValue * -1
End If
Next shpCB
End If
End If
End Sub
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Userform Code not quite right - help please | vbanovice | Word VBA | 1 | 09-29-2013 09:20 PM |
Help with a drop down in userform and variables
|
leemoreau | Word VBA | 1 | 09-14-2013 06:01 AM |
| How to use the SaveAsDialog after UserForm is closed | drod | Word VBA | 0 | 03-03-2013 08:06 PM |
| Outlook userform validation help | aiwnjoo | Outlook | 0 | 12-08-2010 12:57 AM |
Checkbox on Userform result in Text in Word
|
Dolfie_twee | Word VBA | 1 | 06-22-2010 07:54 AM |