¥X²{"¨S¦³³]©wª«¥óÅܼƩÎWith°Ï¶ôÅܼÆ"
- ©«¤l
- 26
- ¥DÃD
- 14
- ºëµØ
- 0
- ¿n¤À
- 71
- ÂI¦W
- 0
- §@·~¨t²Î
- WINDOWS 7
- ³nÅ骩¥»
- 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-8-30
- ³Ì«áµn¿ý
- 2023-11-6
|
¥X²{"¨S¦³³]©wª«¥óÅܼƩÎWith°Ï¶ôÅܼÆ"
¦U¦ì¤j¤j¦n,
·Q½Ð±Ð¤j¤j¤@¤U¡A°õ¦æ¦¹µ{¦¡®É³£·|¥X²{
°õ¦æ¶¥¬q¿ù»~¡¦91¡¦ ¨S¦³³]©wª«¥óÅܼƩÎWith°Ï¶ôÅܼÆ
µ{¦¡³£·|°±¯d¦b¬õ¦âªº¦a¤è¡C¤£ª¾n¦p¦ó¸Ñ¨M
Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = True
If ToggleButton3.Value = True Then
r = Columns("C").Find("¤pp:", lookat:=xlWhole).Row
If Target.Address Like "$A$*" And Target.Row >= 16 And Target.Row < r Then
Application.EnableEvents = False
For Each A In Target
Set RNG = Sheets("°Ñ·Óªí").Columns("A").Find(A, lookat:=xlWhole)
If RNG Is Nothing Then MsgBox "¯Á¤Þ¤£¦s¦b": Application.EnableEvents = True: Exit Sub
A.Offset(, 2) = RNG.Offset(, 1): A.Offset(, 3) = RNG.Offset(, 7)
A.Offset(, 7) = RNG.Offset(, 3): A.Offset(, 8) = RNG.Offset(, 4)
A.Offset(, 9) = RNG.Offset(, 6): A.Offset(, 10) = RNG.Offset(, 5)
A.Offset(, 12) = RNG.Offset(, 2)
Next
ToggleButton1.Caption = "¦WºÙ+³W®æ"
ToggleButton2.Caption = "¼tµP+«¬¸¹"
Application.EnableEvents = True
End If
Else
r = Columns("C").Find("¤pp:", lookat:=xlWhole).Row
If Target.Address Like "$A$*" And Target.Row >= 16 And Target.Row < r Then
Application.EnableEvents = False
For Each A In Target
Set RNG = Sheets("°Ñ·Óªí").Columns("A").Find(A, lookat:=xlWhole)
If RNG Is Nothing Then MsgBox "¯Á¤Þ¤£¦s¦b": Application.EnableEvents = True: Exit Sub
'A.Offset(, 3) = RNG.Offset(, 7)
A.Offset(, 7) = RNG.Offset(, 3): A.Offset(, 8) = RNG.Offset(, 4)
A.Offset(, 9) = RNG.Offset(, 6): A.Offset(, 10) = RNG.Offset(, 5)
A.Offset(, 12) = RNG.Offset(, 2)
Next
ToggleButton1.Caption = "¦WºÙ+³W®æ"
ToggleButton2.Caption = "¼tµP+«¬¸¹"
Application.EnableEvents = True
End If
End If
End Sub |
|
|
|
|
|
|