ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ¨Ì±ø¥ó½Æ»s¤£¦PÄæ¦ì¸ê®Æ»P´M§ä¨ú¥N

¦^´_ 3# n7822123
½Ð°Ý¤U­z¥y¤l Arr = Range([¸ê®Æ¡IAD6], Rg) ¤¤¡ªAD6¡ª¬O«ü¤°»ò¡H¸ê®Æ¤u§@ªíAD6¬OªÅ¥Õ¡C·PÁ«ü¾É¡C
Set Rg = [¸ê®Æ!A1048576].End(xlUp)
If Rg.Row = 1 Then Exit Sub
Arr = Range([¸ê®Æ!AD6], Rg)
Brr = [A5].Resize(UBound(Arr), 15)
100 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

¥»©«³Ì«á¥Ñ n7822123 ©ó 2020-8-22 13:48 ½s¿è

¦^´_ 2# b9208

¥ÎCellÀx¦s®æ¤@­Ó¤@­Ó¶Ç­È·|«ÜºC

¦]¬°Cell¬O­Óª«¥ó¡A¦û¤£¤ÖÀx¦s¦ì¤¸ªÅ¶¡¡A¸Ì­±¥]§t¤FÄæ¼e¡B¦C°ª¡BÃC¦â¡B®æ¦¡¡B¦ì¸m.....¤@³s¦êªº¸ê®Æ

©Ò¥H¥ý§âÀx¦s®æªº"­È"¥áµ¹°O¾ÐÅé(°}¦C)¡AµM«á°µ³B²z

³B²z§¹¦A¤@¦¸¥á¦^µ¹Àx¦s®æ¡A³o¤è¦¡®Ä²v¤ñ¸û°ª (°O¾ÐÅé³B²z¦ì¤¸³t«×¤]·|¤ñÂà½L¦¡ºÏºÐ§Ö)

²Ä2¬qµ{¦¡¤w¸g¬O°ª®Äªº¼gªk¡A§Ú¬O·Q¤£¨ì¦p¦ó¥iÀu¤Æ®Ä²v¤F¡A¥uÀ°§A²¤Æµ{¦¡½X

µM«á§Aµ¹ªº¸ê®Æ­¶¡AAÄæ¨SªF¦è¡A©Ò¥H«e¥b¬q¨Sªk°õ¦æ¨ì~ §Ú¦Û¤v²K¥[¬y¤ô¸¹´ú¸Õ

µ{¦¡¦p¤U


Sub main()
Application.ScreenUpdating = False
Worksheets("¿é¥X").Activate
Ci = Array(, 2, 3, 4, 5, 6, 7, 8, 18, 19, 20, 22, 22, 23, 23)
Set Rg = [¸ê®Æ!A1048576].End(xlUp)
If Rg.Row = 1 Then Exit Sub
Arr = Range([¸ê®Æ!AD6], Rg)
Brr = [A5].Resize(UBound(Arr), 15)
[A2] = [¸ê®Æ!A2]
For R = 1 To UBound(Brr): For C = 1 To 14
    If C <= 10 Then Brr(R, C) = Arr(R, Ci(C))
    If C = 11 Or C = 13 Then Brr(R, C) = Left(Arr(R, Ci(C)), 8)
    If C = 12 Or C = 14 Then Brr(R, C) = Right(Arr(R, Ci(C)), 5)
Next C: Next R
With [A5].Resize(UBound(Brr), 15)  'A~OÄæ¶ñ­È+¹º®Ø½u
    .Value = Brr
    .Borders.LineStyle = xlContinuous
End With
With [A5].Resize(UBound(Brr), 10)   'A~JÄæ°µ±Æ§Ç
    .Sort key1:=.Item(2), key2:=.Item(10), Header:=xlNo
End With
With [H5].Resize(UBound(Brr), 2)   'H¡BIÄæ°µ¨ú¥N
    .Replace "*AA*", "AAA"
    .Replace "*BBB*", "BBB"
    .Replace "*CC*", "CCC"
    .Replace "*DDD*", "DDD"
    .Replace "*EEE*", "DDD"
    .Replace "*FFF*", "FFF"
    .Replace "*GGG*", "GGG"
    .Replace "*HH*", "GGG"
    .Replace "*MM*", "MMM"
    .Replace "*LLL*", "LLL"
    .Replace "*QQQ*", "LLL"
    .Replace "*NNN*", "NNN"
    .Replace "*TTT*", "NNN"
End With
End Sub


´ú¸ÕÀɮצp¤U

q1+.rar (21.58 KB)
µ{¦¡¬O¨Ì»Ý¨D¼gªº¡A»Ý¨Dªí¹F¤£²M·¡
©ÎªÌ¨S¦³¤W¶Çªþ¥ó¡A·R²ö¯à§U

TOP

¦^´_ 1# b9208
«D±`©êºp
¥Ñ©ó²£¥Í¶Ã½X¡A©Ò¥H­«·s¥HÀɮפW¶Ç¡C
µ{§Ç¥Ñ¿ý»s­×§ï¡A¸ê®Æ´X¤dµ§¡A°õ¦æ®É¶¡»Ý­n´X¤ÀÄÁ¡A½Ð±Ð¬O§_¦³ºë¶iµ{®i¦¡¥i¥HÁYµu°õ¦æ®É¶¡¡H
µ{¦¡½X½Ð¬ÝªþÀɼҲÕ
q1.rar (21.01 KB)
100 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

        ÀR«ä¦Û¦b : ·R¤£¬O­n¨D¹ï¤è¡A¦Ó¬O­n¥Ñ¦Û¨­ªº¥I¥X¡C
ªð¦^¦Cªí ¤W¤@¥DÃD