(¤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
|
(¤w¸Ñ¨M)¦p¦ó¥Î·j´M§ä¸ê®Æ«á½Æ»s¸Ó¦ì¸m¥H¤Uªº¸ê®Æ?
¥»©«³Ì«á¥Ñ freeffly ©ó 2012-3-6 13:43 ½s¿è
§Ú·Qn¥Î·j´Mªº¤è¦¡
¦pªþÀÉ
¦pªG·j´M¨ì²Ä¤@¦U¤u§@ªí[C1]ªº¸ê®Æ
´N½Æ»s¦UÓ¤u§@ªí²Ä4¦C¤§«áªº¸ê®Æ
¦]¬°¨C¦U¤u§@ªí±Æªº¦ì¸m¦³ÂI¤£¬Û¦P
©Ò¥H¥Ø«e§Ú·Q¨ìªº¤è¦¡¬O¥Î·j´M
¦ý¬O¥Îvba§Ú¤£ª¾¹D¸Ó«ç»ò¥h§ì
ssdsa.rar (18.08 KB)
|
|
¦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
|
|
|
|
|
- ©«¤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
|
¥»©«³Ì«á¥Ñ 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
|
¦^´_ 4# hugh0620
®¦ ÁÂÁ¦^ÂÐ
§Ú¤]ÁÙ¦³«Ü¦hn¾Ç |
|
¦r¨å¨â¦U¦r ÁÙ¯uÃø²z¸Ñ
|
|
|
|
|
- ©«¤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
|
¦^´_ 5# Hsieh
·PÁª©¥D
³oӤ覡§ó²¼ä
³t«×·Pı§ó§Ö¨Ç
¤£¹L¦³¤@¨Ç¤£À´
®ø¤Æ«á¦A´£°Ý |
|
¦r¨å¨â¦U¦r ÁÙ¯uÃø²z¸Ñ
|
|
|
|
|
- ©«¤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
|
¦^´_ 5# Hsieh
¥J²Ó¬Ý¹L«áªO¥Dªº¤è¦¡»P¥t¥~¤@¦ì¤j¤j¤è¦¡¤£¦P(³B²z¤è¦¡)
¦pªG»¡·Qn¦V¥t¤@¦ì¤j¤j¨º¼Ë§ì¨âÄæn«ç»ò§ï
Application.EnableEvents = False ¦b³o¸Ìªº¥Î³B¬O? nÅý¤°»ò¨Æ¥ó¤£µo¥Í¶Ü?
sh = Format(a, "emm") emm¦³¯S®í³W«h¶Ü ¬Ý¨ìª©¥D¨Ï¥Î¤~ª¾¹D¦³³oºØ¤è¦¡ |
|
¦r¨å¨â¦U¦r ÁÙ¯uÃø²z¸Ñ
|
|
|
|
|
- ©«¤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
è¸Õ¤F¤@¤U ³o¸ÌÁÙ¥i¥H§ï³o¼Ë
Sheet1.Cells(N, 1).Resize(, 4) = Array( _
E.Cells(i, 1), _
E.Cells(i, 2), _
E.Cells(i, K), _
E.Cells(i, K).Offset(0, 1)) |
|
¦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
|
¦^´_ 7# freeffly
H¤j¤j¬O¤@Ó°ª¤â~ §Ú¤£À´ªº°ÝÃD~ ©ß¥X¨Ó~ ¦Uª©¤j©Î¤j¤j̳£¯à«ü¾É¸Ñ´bò~
H¤j¤jªºµ{¦¡ n¦³¤@©wªº±ø¥ó¤~¯à°õ¦æ~
°õ¦æ®Énª`·NSHEET1ªº¤é´Á¸ê®Æ~
Y§Aªº¤é´Á¸ê®Æ¤£¥]§t¦bDATA¤¤ªº¤é´Á~ ´N·|²£¥Í¿ù»~
Á|¨Ò~ §A´£¨Ñªº¸ê®Æ¬O9~10¤ë~ Y§ASHEET1ªº¤é´Á¦b94/9/1¥H«e©Î94/10/31¥H«áªº¤é´Á~
´N·|²£¥Í¿ù»~~
©Ò¥H~ n³]¤@Ó¨¾¿ùªºµ{¦¡½X~ ¤£µM§A°õ¦æªº®ÉÔ¨Sª`·N´N¸Ü±¾¦b¨ºÃäò~ |
|
¾Ç²ß¤~¯à´£¤É¦Û¤v
|
|
|
|
|