(¤w¸Ñ¨M)¦p¦ó¥Î·j´M§ä¸ê®Æ«á½Æ»s¸Ó¦ì¸m¥H¤Uªº¸ê®Æ?
- ©«¤l
- 586
- ¥DÃD
- 123
- ºëµØ
- 0
- ¿n¤À
- 763
- ÂI¦W
- 0
- §@·~¨t²Î
- WINDOW7
- ³nÅ骩¥»
- Office 2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-16
- ³Ì«áµn¿ý
- 2017-3-14
|
¦^´_ 4# hugh0620
®¦ ÁÂÁ¦^ÂÐ
§Ú¤]ÁÙ¦³«Ü¦hn¾Ç |
|
¦r¨å¨â¦U¦r ÁÙ¯uÃø²z¸Ñ
|
|
|
|
|
- ©«¤l
- 559
- ¥DÃD
- 58
- ºëµØ
- 0
- ¿n¤À
- 626
- ÂI¦W
- 0
- §@·~¨t²Î
- win8
- ³nÅ骩¥»
- office2013
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- TW
- µù¥U®É¶¡
- 2010-11-22
- ³Ì«áµn¿ý
- 2024-6-14
|
¥»©«³Ì«á¥Ñ hugh0620 ©ó 2012-2-22 18:03 ½s¿è
¦^´_ hugh0620
´X¦U°ÝÃD°Ý¨Ì¤U
1.
If Target.Column = 3 And Target.Row = 1 T ...
freeffly µoªí©ó 2012-2-22 17:36
§Ú¶È¬O¨Ì§Ú©Òª¾¹Dªº¤è¦¡¨Ó¼¶¼g~ «Ü¦h§ó²`§ó²¤Æªº~ §Ú¤]ÁÙ¦b¾Ç²ß¤¤~
²Ä¤@Ó°ÝÃD~
If Target.Column = 3 And Target.Row = 1 Then exit sub
³o¥y¬OÅý§A³]©w¦bC1³oÓ¦ì¸m¤~¥hIJµoµ{¦¡~
¦pªG¨C¤@ÓÀx¦s®æ³£¬O¿z¿ïªº¦ì¸m~ ³o¼Ë¼gªk´N¦³©Ò¤£¦P
Target.Address = "$C$1"
³oÓ§Ú¦³´ú¸Õ¹L~ ¤]¥i¥H³o¼Ë¼g~
²Ä¤GÓ°ÝÃD
2.²Ä8¦æ¬°¤°»òn³sD¤]³B²z?
¦]¬°¦³¬Ý¨ì¼Ó¥Dªº¥t¥~¨âÓDATA SHEET «e±¦UºØ¹ôȬO¨âÓÄæ¦ì¸ê®Æ~
¥[¤W¤é´Á»P¬P´Á ¦@¦³¥|¦CÄæ¦ì~
²Ä¤TÓ°ÝÃD
E.Index ªº·N«ä: E¬O¬¡¶¸¹½X~ ¦]§An¦s©ñ¸ê®ÆªºSHEET.index= 1
¦Óµ{¦¡¦b°õ¦æ¬O¨C¤@ÓSHEET³£·|³Q¯Ç¤J¿z¿ï~
©Ò¥H~ ¥Î¤@ÓIF¨Ó§PÂ_ ÁקK¦s©ñ¸ê®ÆªºSHEET¤]³Qpºâ~ ¦³¥i¯à·|³y¦¨¿ù»~~ |
|
¾Ç²ß¤~¯à´£¤É¦Û¤v
|
|
|
|
|
- ©«¤l
- 586
- ¥DÃD
- 123
- ºëµØ
- 0
- ¿n¤À
- 763
- ÂI¦W
- 0
- §@·~¨t²Î
- WINDOW7
- ³nÅ骩¥»
- Office 2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-16
- ³Ì«áµn¿ý
- 2017-3-14
|
¦^´_ 2# hugh0620
¤Ó¼F®`¤F
´X¦U°ÝÃD°Ý¨Ì¤U
1.
If Target.Column = 3 And Target.Row = 1 Then
³o¤@¥y¥i¥H§ï¦¨ Target.Address = "$C$1" ¶Ü
2.²Ä8¦æ¬°¤°»òn³sD¤]³B²z?
3.
E.Index ³oÓªº·N«ä¬O? |
|
¦r¨å¨â¦U¦r ÁÙ¯uÃø²z¸Ñ
|
|
|
|
|
- ©«¤l
- 559
- ¥DÃD
- 58
- ºëµØ
- 0
- ¿n¤À
- 626
- ÂI¦W
- 0
- §@·~¨t²Î
- win8
- ³nÅ骩¥»
- office2013
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- TW
- µù¥U®É¶¡
- 2010-11-22
- ³Ì«áµn¿ý
- 2024-6-14
|
¦^´_ 1# freeffly
³oӤ覡°w¹ï¼Ó¥D§An·J¾ãªºsheet¤¤C1ªºÀx¦s®æ¸ê®Æ
¥h¿z¿ï§A¨C¤@Ó¤ë¥÷ªº²Å¦X§AC1¸ê®ÆªºÄæ¦ì,±N¸Ó¸ê®Æ±a¥X¨Ó
´£¨Ñµ¹§A°Ñ¦Ò¸Õ¸Õ¬Ý~
¥i¥H±NC1ªºÀx¦s®æ³]©wÅçÃÒªº¤è¦¡¨Ó¬D¿ï¸ê®Æ~ ·|§ó¦X¥Î~- Private Sub Worksheet_Change(ByVal Target As Range)
- Dim E As Worksheet
- If Target.Column = 3 And Target.Row = 1 Then
- N = 2
- A = Sheet1.Range("C1")
- Sheet1.Range("A2:D65536").ClearContents
- For Each E In Sheets
- If E.Index <> 1 Then
- Set F = E.Range("A1:IV1").Find(A, LookIn:=xlValues)
- If Not F Is Nothing Then
- K = E.Range("A1:IV1").Find(A).Column
- I = 4
- Do Until E.Cells(I, 1) = ""
- With E
- Sheet1.Cells(N, 1) = E.Cells(I, 1)
- Sheet1.Cells(N, 2) = E.Cells(I, 2)
- Sheet1.Cells(N, 3) = E.Cells(I, K)
- Sheet1.Cells(N, 4) = E.Cells(I, K).Offset(0, 1)
- N = N + 1
- End With
- I = I + 1
- Loop
- End If
- End If
- Next
- End If
- End Sub
½Æ»s¥N½X |
|
¾Ç²ß¤~¯à´£¤É¦Û¤v
|
|
|
|
|