- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 6# kai6929
¤£ºÞ¤è¶ô²¾°Ê¨ì¦ó³B,¬Ò¦b©T©wªºÀx¦s®æ¦^À³
¤@¯ë¼Ò²Õªºµ{¦¡½X- Option Explicit
- Dim AR(1 To 2), Sh As Worksheet '¼Ò²Õ ¨p¥ÎÅܼÆ
- Sub AUTO_OPEN() 'Àɮ׶}±Ò®É¤@¯ë¼Ò²Õ ¦Û°Ê°õ¦æªºÀÉ®×
- Dim S As Shape, A(), B(), i As Integer
- Set Sh = Sheets("¤u§@ªí1")
- For Each S In Sh.Shapes
- If S.Type = msoTextBox Then '¤è¶ôªºType msoTextBox È= 17
- S.OnAction = "check" '«ü©w¥¨¶°
- ReDim Preserve A(i)
- ReDim Preserve B(i)
- A(i) = S.Name '¤è¶ô¦WºÙ
- If i = 0 Then
- Set B(i) = Sh.[d5] '«ü©wÀx¦s®æ
- Else
- Set B(i) = B(i - 1).Offset(1) '«ü©wÀx¦s®æ
- End If
- i = i + 1
- End If
- Next
- AR(1) = A '«ü©w°}¦C¤º®e
- AR(2) = B '«ü©w°}¦C¤º®e
- End Sub
- Sub check() '¥²¶·¬O«ö¤U¤è¶ô°õ¦æ¦¹µ{§Ç
- 'AUTO_OPEN '¦p¦³¿ù»~ °õ¦æ AUTO_OPEN ¤@¦¸
- Dim K As String, M As Boolean, i As Integer
- With Sh.Shapes(Application.Caller)
- With .TextFrame
- K = .Characters.Text
- If Left(K, 1) = "n" Then
- .Characters.Text = "o ¥¼¿ï¨ú"
- M = False
- Else
- .Characters.Text = "n ¿ï¨ú"
- M = True
- End If
- .Characters(1, Len(K) + 1).Font.Size = 10
- .Characters(1, 1).Font.Size = 18
- End With
- i = Application.Match(.Name, AR(1), 0) - 1 '¨úªº¤è¶ô¦WºÙ¦bAR(1)ªº¯Á¤ÞÈ
- AR(2)(i).Value = M
- AR(2)(i).Offset(, 1).Value = IIf(CSng(M) = 0, 0, 1)
- End With
- End Sub
½Æ»s¥N½X |
|