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

[µo°Ý] ¦p¦ó¦Û°Ê¾ã²z¸ê®Æ¤@¦¸¦C¦L¥þ³¡

[µo°Ý] ¦p¦ó¦Û°Ê¾ã²z¸ê®Æ¤@¦¸¦C¦L¥þ³¡

½Ð±Ð¦U¦ì
§Ú¦³¤@­Ó±Æ¦¨·Q­n¦Û°Ê¾ã²z¦n¿é¤J°O¿ýªí¤º,¤@¦¸¦C¦L¥þ³¡­n¦p¦ó°µ?
ÀËÅç°O¿ýªí-A4.rar (25.2 KB)

¦^´_ 1# aassddff736


    ÁÂÁ«e½úµoªí¦¹¥DÃD»P½d¨Ò
«á¾ÇÂǦ¹©«½m²ß°}¦C,¾Ç²ß¤è®×¦p¤U,½Ð«e½ú°Ñ¦Ò
"±Æ¦¨"ªí °õ¦æ«e:


"±Æ¦¨"ªí °õ¦æµ²ªG:


Option Explicit
Sub ¾ã²zªí·J¾ã¬°±Æ¦¨ªí()
Dim Brr, Crr, i&, R&, xU As Range, xS As Worksheet
Set xS = Sheets("¾ã²z")
[±Æ¦¨!A1].CurrentRegion.Offset(1).EntireRow.Delete
Brr = Range(xS.[F2], xS.[A65536])
ReDim Crr(1 To UBound(Brr), 1 To 4)
For i = 1 To UBound(Brr)
   If Trim(Brr(i, 3)) = "" Then GoTo i01 Else R = R + 1
   If Trim(Brr(i, 6)) <> "" Then
      If xU Is Nothing Then
         Set xU = Sheets("±Æ¦¨").Cells(R + 1, 3)
         Else
         Set xU = Union(xU, Sheets("±Æ¦¨").Cells(R + 1, 3))
      End If
   End If
   Crr(R, 1) = Trim(Brr(i, 2))
   Crr(R, 2) = Trim(Brr(i, 3))
   Crr(R, 3) = Trim(Brr(i, 4)) & vbCrLf & Trim(Brr(i, 6))
   Crr(R, 4) = Val(Brr(i, 5))
i01: Next
If R = 0 Then MsgBox "¨S¦³¸ê®Æ": Exit Sub
With [±Æ¦¨!A2].Resize(R, 4)
   .Value = Crr
   .Borders.LineStyle = xlContinuous
End With
If Not xU Is Nothing Then xU.Font.ColorIndex = 3
End Sub
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¦^´_ 2# Andy2483

ÁÂÁ¤j¯«
¦ý¤£ª¾¹D¬°¤°»ò§Ú§ó§ï±Æµ{¸ê®Æ ¶]VBA³£·|¸õ¦^­ì¥ý¸ê®Æ

TOP

¥»©«³Ì«á¥Ñ Andy2483 ©ó 2024-2-26 13:24 ½s¿è

¦^´_ 3# aassddff736


    ÃD·N¸Ì¨S¦³»¡©ú ¾ã²zªí·J¾ã¬°±Æ¦¨ªí ÁÙ¬O ±Æ¦¨ªí·J¾ã¬°¾ã²zªí
¥u¯à²q,¤Ï¥¿«á¾Ç¾Ç²ß½m²ß,©Ò©¯¨âºØ³£°µ,½Ð«e½ú¦Û¤v³B²z
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¦^´_ 4# Andy2483


¤£¦n·N«ä ªí¹F²M·¡ ÁÂÁ±z
¯à°Ý°Ý±z«ç»ò¾ÇVBA ¬O¬ÛÃö¬ì¨t²¦·~ÁÙ¬O¦Û¾Ç

TOP

¦^´_ 5# aassddff736

¾÷±ñ¨t
¿ý»s¥¨¶°¶}©l¾Ç°_,ª¾ÃÑ+¾Ç°ò¦,³Â»¶®a±Ú½×¾ÂÄ~Äò¾Ç²ß¤¤,¾Ç²ßExcel²Ä13¦~,Åwªï¤@°_¾Ç²ß
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¦^´_ 6# Andy2483


·PÁ±z
§Ú¬O¯uªº«Ü·Q¾Ç

TOP

¦^´_ 7# aassddff736


    ¯u·Q¾Ç´N­n¥H¦Û¤vªº®×¨Ò¶}©l½m²ß°_,°Ý¦Û¤v½m²ß¹J¨ìªº°ÝÃD,¶i¨B·|¤ñ¸û§Ö
¦pªG¯àµù¸Ñ§O¤Hªº©«¤l,§â©Ò¦³¤£À´ªº³¯­z¦¡.¨ç¼Æ.¤èªk.ª«¥ó....µ¥³£·dÀ´¶i¨B³Ì§Ö
­n§Ûŧ¤]­nª¾¹D­þ¸Ì¥i¥H°Ñ¦Ò
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¦^´_ 8# Andy2483
®¦®¦ÁÂÁ«üÂI

TOP

        ÀR«ä¦Û¦b : ¸Ü¦h¤£¦p¸Ü¤Ö¡A¸Ü¤Ö¤£¦p¸Ü¦n¡C
ªð¦^¦Cªí ¤W¤@¥DÃD