M
maclachlan
Hopefully somebody can help me out.
I have setup a userform with various checkboxes included on the form.
The checkbox's hide and unhide the various columns. The code I use
for this is:
Private Sub CheckBox4_Click()
If CheckBox4.Value Then
Columns("D").Hidden = True
Else
Columns("D").Hidden = False
End If
End Sub
Everything works fine until I exit the userform and then re-open it.
The checkmarks on the userform are gone but the column is still hidden
My question is how do I save the settings of the checkbox once th
userform is re-opened. Is there an easier way to code the checkboxe
as I have about 20 of them. I'm new to the VB coding so anything wil
help.
Thanks
Ro
I have setup a userform with various checkboxes included on the form.
The checkbox's hide and unhide the various columns. The code I use
for this is:
Private Sub CheckBox4_Click()
If CheckBox4.Value Then
Columns("D").Hidden = True
Else
Columns("D").Hidden = False
End If
End Sub
Everything works fine until I exit the userform and then re-open it.
The checkmarks on the userform are gone but the column is still hidden
My question is how do I save the settings of the checkbox once th
userform is re-opened. Is there an easier way to code the checkboxe
as I have about 20 of them. I'm new to the VB coding so anything wil
help.
Thanks
Ro