Hi,
cross posted here:
Code to find out value in checkbox when workbook is minimazed
MY code is:
is is possible to catch value of checbox before resizing workbook event?
Jacek
cross posted here:
Code to find out value in checkbox when workbook is minimazed
MY code is:
VBA Code:
Private Sub Workbook_WindowResize(ByVal Wn As Window)
Dim CheckBox1 As CheckBox
Set CheckBox1 = ActiveSheet.CheckBoxes("Check Box 1")
Dim ValChcBox As String
ValChcBox = CheckBox1.Value
If Wn.WindowState = xlMaximized Then
ElseIf Wn.WindowState = xlMinimized Then
If ValChcBox = xlOn Then
If Not UserForm1.Visible Then UserForm1.Show vbModeless
End If
Else ' normal
End If
End Sub
is is possible to catch value of checbox before resizing workbook event?
Jacek