¤p§Ì¤£¤~...¤§«eµo°Ý¤F³\¦h¥\¯à, nµ²¦X¦¨¤@Óµ{¦¡
µ²ªG¥X½u¦p¼ÐÃD¼Ëªº¿ù»~
¦X¨ÖÀx¦s®æ®É´N·|¥X¿ù...., »¡¤]©_©Ç...²Ä¤@¤Ñ¼¶¼g§¹²¦Try Run ³£¨S°ÝÃD..²Ä¤G¤Ñ´N¥X¿ù¤F
§Ú¥ý»¡©ú¤@¤Uµ{¦¡¦p¦ó¼¶¼g¤ÎÅÞ¿è
¦p¤U¹Ï©Ò¥Ü, ¤À¬°AÀɮץΨӰõ¦æ¥¨¶°, BÀɮ׬°¸ê®Æ°Ñ¦Ò¨Ó·½ ( ¦]¬°ÀɮצWºÙ¤£¤@©w, ¦ý¤º®e®æ¦¡©T©w )
°õ¦æµ{¦¡¤è¦¡:
1. ¦P®É¥´¶}A, B ÀÉ®× , µ{¦¡¶}©l§PÂ_BÀɮתº¤À¶3 , ¬ÛÃöÄæ¦ì,§P©w¨S¦³¶}¿ùBÀÉ®×(¸ê®Æ°Ñ¦Ò¨Ó·½)
2. ±NBÀÉ®×»ÝnªºÄæ¦ì½Æ»s¨ìAÀɮפº, °Å°Å¶K¶K
3. ¶}©l°w¹ï¤£»Ýn«O¯dªº§R°£
3-1. §PÂ_I~TÄæ¦pªGªÅ¥Õ¤]§R°£
4. ±NZÄæ¦ì, ²Ä¤@Ó¡y-¡z «eªº¸ê®Æ§R°£, «O¯dnªº¸ê®Æ
5. ¶}©l§PÂ_BÄæ¦ì¡BCÄæ¦ì¡BDÄæ¦ì¡BEÄæ¦ì¡BFÄæ¦ì¡BXÄæ¦ì¡BZÄæ¦ì ¥un¬Û¦P´N¦X¨ÖÀx¦s®æ
(¤U¹ÏÁ|¨Ò¹Ï) ¥X¿ù¤]¦b³o
6. ¤§«á´N¶]¥ý«eµo°Ýªº°ÝÃD [µo°Ý] ¦p¦ó±NAÄæ¬Û¦Pªº¦r, ´¡¤J·sÄæ¦ì·s¼W¨ìBÄæ¸Ì
7. ½Õ¾ãÄæ¼e
8. ½Õ¾ã¦C¦L³]©w
¡° µ{¦¡°õ¦æ§¹²¦²z·Qª¬ºA¦pAÀɮײĤTÓ¤À¶[ENG] < ¤â°Ê½Õ¾ã§¹¦¨, ¦]¥X¿ùµLªkÅã¥Ü¨º¼Ë >
Q1: ½Ð°Ý¥X¿ùªº³¡¤Àµ{¦¡½X¦p¦ó×¥¿©O?
¿ù»~³¡¤À- For Each xRR In xArea
- If xRR & xRR(1, 2) <> xRR(0) & xRR(0, 2) Then Set xH = xRR
- If xRR & xRR(1, 2) <> xRR(2) & xRR(2, 2) Then
- Range(xH, xRR).Merge: Range(xH(1, 2), xRR(1, 2)).Merge 'MO
- Range(xH, xRR).Merge: Range(xH(1, 3), xRR(1, 3)).Merge 'PC Code
- Range(xH, xRR).Merge: Range(xH(1, 4), xRR(1, 4)).Merge 'Device
- Range(xH, xRR).Merge: Range(xH(1, 5), xRR(1, 5)).Merge 'Date
- Range(xH, xRR).Merge: Range(xH(1, 24), xRR(1, 24)).Merge 'MO QTY
- Range(xH, xRR).Merge: Range(xH(1, 26), xRR(1, 26)).Merge ' BD NO
- Range(xH, xRR(1, 26)).Borders.LineStyle = 1
- For i = 7 To 10
- Range(xH, xRR(1, 26)).Borders(i).Weight = xlMedium
- Next i
- End If
- Next
½Æ»s¥N½X Q2: ¥Ø«e¦]¬°¤p§Ì¤Ó²Â, ©Ò¥H¤TÓ«ö¶s³£¬OÓ§O¶]¦U¦Û¤À¶, ¦³¿ìªk¶]¤@¦¸µ{¦¡, ¦Û°Ê¤À¥h¤TÓ¤À¶¶Ü?
AÀɮתº¤TÓ¤À¶, ³£¬O°Ñ¦ÒBÀɮפÀ¶3ªº¸ê®Æ
®t²§©ó
AÀɮפÀ¶2 ¬On±N¦p¤U±ø¥ó³£§R°£- For g = .Range("A65536").End(xlUp).Row To 2 Step -1
- If .Cells(g, "A") Like "BGA*" Or _
- .Cells(g, "C") Like "*CSP-L1*" Or _
- .Cells(g, "C") Like "*L1*" Or _
- .Cells(g, "C") Like "*L2*" Or _
- .Cells(g, "C") Like "*CSP*" Or _
- .Cells(g, "C") Like "*ENG*" Or _
- .Cells(g, "C") Like "*HQ-CSP*" Or _
- .Cells(g, "C") Like "*HQ-L2*" Then
- .Rows(g).Delete
- End If
- Next
½Æ»s¥N½X AÀɮפÀ¶3 ¬O¥un«O¯d¦p¤U±ø¥ó, ´Á¥L³£§R°£- For g = .Range("A65536").End(xlUp).Row To 2 Step -1
- If Not .Cells(g, "C") Like "*ENG*" Then
- .Rows(g).Delete
- End If
- Next
½Æ»s¥N½X AÀɮפÀ¶4 ¬O¥un«O¯d¦p¤U±ø¥ó, ´Á¥L³£§R°£- For y = .Range("A65536").End(xlUp).Row To 2 Step -1
- If Not .Cells(y, "C") Like "*CSP-L1*" And _
- Not .Cells(y, "C") Like "*L1*" And _
- Not .Cells(y, "C") Like "*L2*" And _
- Not .Cells(y, "C") Like "*CSP*" And _
- Not .Cells(y, "C") Like "*HQ-CSP*" And _
- Not .Cells(y, "C") Like "*HQ-L2*" Then
- .Rows(y).Delete
- End If
- Next
- End With
½Æ»s¥N½X
test.rar (656.48 KB)
|