ش | ی | د | س | چ | پ | ج |
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
اجرای باتنی در سابفرم بدون کلیک روی آن
Public Function New_Main() As Form Set New_Main = New Form_frmMain End Function Sub Test() Dim mm As Form Set mm = New_Main Debug.Print mm.Controls.Count With mm.Form("frmSub") Debug.Print .Controls.Count Debug.Print .Controls("CommandButton1").Enabled .Form.CommandButton1_Click End With End Sub