¡mµo°Ý¡nvba-¦W³æ¤ñ¹ï¬Û²Å¦X¦^¼g¸ê®Æ
©«¤l 77 ¥DÃD 30 ºëµØ 0 ¿n¤À 110 ÂI¦W 0 §@·~¨t²Î win7 ³nÅ骩¥» office2003 ¾\ŪÅv 20 ©Ê§O ¨k ¨Ó¦Û ¥x¥_ µù¥U®É¶¡ 2013-7-14 ³Ì«áµn¿ý 2018-10-3
¦^´_ 12# GBKEE
¥ýÁÂÁª©¥D¬Ý¨ì§Úªº¨D±Ï¡I
§Ú»¡©ú¤@¤U~
ìµ{¦¡¤º®e¤w¥i¥H¦^¼g¸ê®Æ¨Ó·½¡]§Ú¤]§ËÀ´¤F¡^¡A¦ý§Ú¹Á¸Õn±N¦W³æºP¶ªºBÄæ¡]©Ê§O¡^¤]¤@¨Ö±a¤J¤ñ¹ï«á¸ê®Æ¡I
§Ú¸Õ¤F¦n¤[¡A¤]¤Wºô¬d¤F¦n¤[¡A§Ú¹ê¦b¯à¤O¤£¨¬¡AµLªk°Ñ³z¦p¦ó§ï¡I
·s¤H¤@ªT
©«¤l 77 ¥DÃD 30 ºëµØ 0 ¿n¤À 110 ÂI¦W 0 §@·~¨t²Î win7 ³nÅ骩¥» office2003 ¾\ŪÅv 20 ©Ê§O ¨k ¨Ó¦Û ¥x¥_ µù¥U®É¶¡ 2013-7-14 ³Ì«áµn¿ý 2018-10-3
§Ú¥HGBKEEª©¥D´£¨Ñªº¶i¦æ¤F¸Ñ«á¡An¦A½Õ¾ã±NSHEETS("¦W³æ")ªºBÄæ¦ì¤]¦P®É¦^¼g¦bSHEETS("¤ñ¹ï«á¸ê®Æ")¡A¸g§ï¤F¤@¤U«á¡Aµ²ªG±a¥Xªº¸ê®Æ¤£¥¿½T¡A½Ð¤j®a«ü¾É§Ú¡I
Sub tt()
Dim rng(1 To 5) As Range, E, K As Range
Set rng(1) = Sheets("¦W³æ").Range("a2")
Set rng(3) = Sheets("¸ê®Æ¨Ó·½").Range("a:a")
Do While rng(1) <> ""
Set rng(4) = rng(3).Find(rng(1), lookat:=xlWhole)
If Not rng(4) Is Nothing Then
rng(3).Replace rng(1), "=book", xlWhole
With rng(3).SpecialCells(xlCellTypeFormulas, xlErrors)
.Value = rng(1)
With rng(1)
For Each E In .Cells
For Each K In .Cells
With Sheets("¤ñ¹ï«á¸ê®Æ")
Cells(.UsedRange.Rows.Count + 1, "C").Value = K.Offset(, 1)
Cells(.UsedRange.Rows.Count, "A").Value = E
Cells(.UsedRange.Rows.Count, "B").Value = E.Range("B1")
End With
Next
Next
End With
End With
End If
Set rng(1) = rng(1).Offset(1)
Loop
End Sub
·s¤H¤@ªT
©«¤l 77 ¥DÃD 30 ºëµØ 0 ¿n¤À 110 ÂI¦W 0 §@·~¨t²Î win7 ³nÅ骩¥» office2003 ¾\ŪÅv 20 ©Ê§O ¨k ¨Ó¦Û ¥x¥_ µù¥U®É¶¡ 2013-7-14 ³Ì«áµn¿ý 2018-10-3
ÁÂÁª©¥D´£¿ô¤Î«ü¾É¡A¤]ÁÂÁ GBKEE¡I§Ú·|¦A¥[ªoªº¡A¨C¤Ñ»{¯uª¦¤åªº¡I
¯uªº«Ü·PÁ¡I
·s¤H¤@ªT
©«¤l 182 ¥DÃD 34 ºëµØ 0 ¿n¤À 316 ÂI¦W 0 §@·~¨t²Î Win 7 ³nÅ骩¥» Office 2010 ¾\ŪÅv 20 ©Ê§O ¨k ¨Ó¦Û Taiwan µù¥U®É¶¡ 2010-5-2 ³Ì«áµn¿ý 2023-6-24
¦^´_ 8# GBKEE
«D±`·PÁª©¤j
µ{¦¡½X¥i¥H¹B¥Î°õ¦æ
100 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X
©«¤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
¦^´_ 7# b9208 Option Explicit
Option Base 1
Sub ¤ñ¹ï¦W³æ()
Dim Ar(1 To 2), Ax(), E As Variant, i As Integer, S As Integer
Ar(1) = Application.Transpose(Sheets("¦W³æ").UsedRange.Columns(1)) '¦W³æªº¸ê®ÆÂà¤J°}¦C
Ar(2) = Sheets("¸ê®Æ¨Ó·½").UsedRange '¸ê®Æ¨Ó·½ªº¸ê®ÆÂà¤J°}¦C
S = 1
For Each E In Ar(1) '*** ½Ð×¥¿ ¦W³æªº¼ÐÀY= ¸ê®Æ¨Ó·½:¦W³æªº¼ÐÀY
For i = 1 To UBound(Ar(2))
If InStr(Ar(2)(i, 1), E) Then '¦³¤ñ¹ï¨ì>0 ±ø¥ó¦¨¥ß
'InStr ¨ç¼Æ ¶Ç¦^¦b¬Y¦r¦ê¤¤¤@¦r¦êªº³Ì¥ý¥X²{¦ì¸m¡A¦¹¦ì¸m¬° Variant (Long)¡C
ReDim Preserve Ax(S)
Ax(S) = Application.Index(Ar(2), i) '¨ú³sÄòÄæ¦ì
'******* ¨ú¤£³sÄòªºÄæ¦ì 'A.B.C.E.G,H->1,2,3,5,7,8
'Ax(S) = Array(Ax(S)(1), Ax(S)(2), Ax(S)(3), Ax(S)(5), Ax(S)(7), Ax(S)(8))
S = S + 1
End If
Next
Next
Sheets("¤ñ¹ï«á¸ê®Æ").UsedRange.Clear '¥þ³¡²M°£
Sheets("¤ñ¹ï«á¸ê®Æ").[a1].Resize(UBound(Ax, 1), UBound(Ax(1))) = Application.Transpose(Application.Transpose(Ax))
End Sub ½Æ»s¥N½X
©«¤l 182 ¥DÃD 34 ºëµØ 0 ¿n¤À 316 ÂI¦W 0 §@·~¨t²Î Win 7 ³nÅ骩¥» Office 2010 ¾\ŪÅv 20 ©Ê§O ¨k ¨Ó¦Û Taiwan µù¥U®É¶¡ 2010-5-2 ³Ì«áµn¿ý 2023-6-24
¦^´_ 6# GBKEE
Dear GBKEE
¦pªG¡ª¸ê®Æ¨Ó·½¡ªAÄ欰 12½X½s¸¹¡]¦p¡G1001QWER7895¡^
¡ª¦W³æ¡ª²Å¦X¨ä¤¤¤T½X¡]¦p¡GQWE¡^¡A½s¸¹²Ä5~7¤T½X©Î¥ô¦ó¦ì¸m¤T½X¡C
µ{¦¡½X¦p¦ó×q
·PÁ«ü¾É
100 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X
©«¤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
¥»©«³Ì«á¥Ñ GBKEE ©ó 2014-1-17 10:11 ½s¿è
¦^´_ 5# eric093
¦³¤£¸Ñ¤§³B ½×¾Â¤¤·j´MÃöÁä¦r,¦h¬Ý¬Ý·|¶i¨Bªº.
¥t¤@¼gªk¨Ñ°Ñ¦ÒOption Explicit
Sub ¤ñ¹ï¦W³æ()
Dim Rng(1 To 3) As Range, E As Range
Sheets("¤ñ¹ï«á¸ê®Æ").UsedRange.Offset(1).Clear ''²Ä¤@¦Cªº ©m¦W,©~¦í¦a,©Ê§O,¦~ÄÖ,¤£²M°£
Set Rng(1) = Sheets("¸ê®Æ¨Ó·½").Range("A:A") '¸ê®Æ¨Ó·½¦W³æ
Set Rng(2) = Sheets("¦W³æ").Range("A2") '²Ä¤@Ó¤H¦W
Do While Rng(2) <> ""
Set Rng(3) = Rng(1).Find(Rng(2), lookat:=xlWhole) '¸ê®Æ¨Ó·½¦W³æ¤¤·j´M¤H¦W
If Not Rng(3) Is Nothing Then 'Not Rng Is Nothing :¦³§ä¨ì¤H¦W
Rng(1).Replace Rng(2), "=gbkee", xlWhole '±N¬Û¦Pªº¤H¦W´À´«¬°¿ù»~È
With Rng(1).SpecialCells(xlCellTypeFormulas, xlErrors) '¯S®íªº½d³ò(¤½¦¡,¿ù»~È)
.Value = Rng(2) '¿ù»~ȧï¦^¤H¦W
For Each E In .Cells 'Each E : ¤@Ó°}¦C©Î¶°¦X¤¤ªº¨C¤@¤¸¯À©Î¦¨û
With Sheets("¤ñ¹ï«á¸ê®Æ")
'E.Resize(, 4).Copy .Cells(.UsedRange.Rows.Count + 1, "A") '³sÄòªº4Äæ
'¥i¯à¬OA¡BB¡BC¡BG¡BIÄæ (¤£³sÄò5Äæ)
.Cells(.UsedRange.Rows.Count + 1, "A").Resize(, 5) = Array(E, E.Range("B1"), E.Range("C1"), E.Range("G1"), E.Range("I1"))
End With
Next
End With
End If
Set Rng(2) = Rng(2).Offset(1) '¤U¤@Ó¤H¦W
Loop
End Sub ½Æ»s¥N½X
©«¤l 77 ¥DÃD 30 ºëµØ 0 ¿n¤À 110 ÂI¦W 0 §@·~¨t²Î win7 ³nÅ骩¥» office2003 ¾\ŪÅv 20 ©Ê§O ¨k ¨Ó¦Û ¥x¥_ µù¥U®É¶¡ 2013-7-14 ³Ì«áµn¿ý 2018-10-3
[ª©¥DºÞ²z¯d¨¥] Hsieh(2014-1-16 23:53): ³o¨Ç³£¬O°ò¥»°ÝÃD¡A½×¾Â¤¤³£°Q½×¹L¡A·s¤â´N½Ð¦hª¦¤å
ÁÂÁ¡I¥i¥H®M¤J¤F¡I¦ý¬O
¥i½Ð±Ð´XÓ°ÝÃD¶Ü¡H¡]§Úªì¤Jªù¤£¤Ó¤F¸Ñ¡A©Ò¥H°Ý¤F²Â°ÝÃD¡^
For Each A In .Range(.[A2], .[A2].End(xlDown))
¬°¤°»ò .Range«e±·|¦³ÓÂI¡A¦Ó(.[A2], .[A2].¤]³£·|¦³ÓÂI
If Not Rng Is Nothing Then ³o¥yµ{§Ç½Xªº·N«ä¡H
s& ³o¬O©w¸q¤°»ò¡H
¦pªG¡A§Ú·Q¨úªº¸ê®Æ¨Ó·½Y¤£¬O³sÄòÄæ¦ì¡H¡]¥i¯à¬OA¡BB¡BC¡BG¡BIÄæ¡^¬O¤£¬O´N¤£¥i¥H¥Î
Ar(s) = Application.Transpose(Application.Transpose(c.Resize(, 4).Value))
·s¤H¤@ªT