- ©«¤l
- 1018
- ¥DÃD
- 15
- ºëµØ
- 0
- ¿n¤À
- 1058
- ÂI¦W
- 0
- §@·~¨t²Î
- win7 32bit
- ³nÅ骩¥»
- Office 2016 64-bit
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ®ç¶é
- µù¥U®É¶¡
- 2012-5-9
- ³Ì«áµn¿ý
- 2022-9-28
|
¥»©«³Ì«á¥Ñ stillfish00 ©ó 2013-10-25 20:04 ½s¿è
¦^´_ 5# dechiuan999
§Úª¾¹D§Anªº¬O
myClass- Option Explicit
- Public WithEvents mTxt As MSForms.TextBox
- Public WithEvents mCmd As MSForms.CommandButton
- Public WithEvents mPage As MSForms.MultiPage
- Private Sub mPage_Change()
- MsgBox mPage.Pages(mPage.Value).Caption
- End Sub
½Æ»s¥N½X Userform- Private Sub UserForm_Initialize()
-
- Dim i As Long
- Dim j As Long
- Dim k As Long
-
- ReDim mTb(1 To 2)
- For i = 1 To 2
- Set mTb(i) = New myClass
- Set mTb(i).mTxt = Me.Controls("Textbox" & i)
- co1.Add mTb(i).mTxt
- Next
-
- ReDim mCd(1 To 6)
- For j = 1 To 6
- Set mCd(j) = New myClass
- Set mCd(j).mCmd = Me.Controls("CommandButton" & j)
- co2.Add mCd(j).mCmd
- Next
-
- ReDim mPg(1 To 1)
- For k = 1 To 1
- Set mPg(k) = New myClass
- Set mPg(k).mPage = Me.Controls("MultiPage" & k)
- Next
- End Sub
½Æ»s¥N½X ¦ý¬OÀ³¸Ó¬O Userform ¤W¦³«Ü¦hÓ MultiPage ®É³o¼Ë¼g¤~¦³¥Î§a¡C |
|