- ©«¤l
- 471
- ¥DÃD
- 121
- ºëµØ
- 0
- ¿n¤À
- 579
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN10
- ³nÅ骩¥»
- OFFICE2019
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-4-16
- ³Ì«áµn¿ý
- 2023-1-17
|
¹³GBKEEª©¥Dªº«ü¥O,«ü©w¦ì¸mª¾¹D¦bþÃäקï,¦ýn¦p¦ó§ï¦¨§Ú©Ò»Ýnªº¦rÅé©O?- 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 |
|