การสร้างตัวแปรให้กับ checkbox สามารถทำได้ไหมคะ
Posted: Tue Apr 29, 2014 9:52 pm
เนื่องจากดิฉันได้สร้าง checkbox จากการเขียนขึ้นด้วย VBA เพราะจะต้องทำให้ checkbox แสดงตาม Group ซึ่งมีการเปลี่ยนแปลงบ่อย แต่พอกำหนดตัวแปรให้ checkbox มันผิดอ่ะค่ะ จะต้องทำยังไง หรือมีวิธีอื่นไหมค่ะ รบกวนช่วยแนะนำหน่อยค่ะ
Dim x As Integer
x = 2
If CheckBox1.Value = True Then
CheckBox(x).Value = True
End If
Dim x As Integer
x = 2
If CheckBox1.Value = True Then
CheckBox(x).Value = True
End If