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

[µo°Ý] ÃöÁä¦r¬d¸ß¥i§ï¬°VBA¤è¦¡«ö¶s¬d¸ß

¦^´_ 16# samwang
S¤j¤j§A¦n
¤u§@ªí4¤¤
Ãö©ó¬d¸ß¦rÄ椤¬O§_¥iÂI¨ä¤¤1Äæ«á·Æ¹««ü¼Ð¥i¦Û°Ê´M§ä¨ì¦P¤@¤u§@ªí¸Ó©Ò¬d¸ß¦rÄæ¬Û¦P¦rÄæ¦ì¸m?
¦Ó¶µ¥Ø«h¥H100¶µ¬°1Äæ
¦C¦pA101¨ìA200¬°FÄæ.B201¦ÜB300¬°PÄæ.¥H¤UÃþ±À¨ìKLÄæ

ÃöÁä¦rvba.zip (129.61 KB)

±Ó¦Ó¦n¾Ç,¤£®¢¤U°Ý

TOP

¥»©«³Ì«á¥Ñ BV7BW ©ó 2021-5-19 01:23 ½s¿è

¦^´_ 24# jcchiang
J¤j¤j§A¦n
¤W¦¸ÃöÁä¦r¬O§_¥i¦b©Ò¬d¸ß¦rÄ椤ÂI¨ä¤¤1Äæ«á.·Æ¹««ü¼Ð¥i¦Û°Ê´M§ä¨ì¦P¤@¤u§@ªí¬Û¦P¦rÄæ¦ì¤W?
¬O§_¥i¦æ? ÃöÁä¦rvba.zip (118.14 KB)
¶µ¥Ø¹ï¶µ¥Ø
«È¤á¦WºÙ¹ï«È¤á¦WºÙ

ÃöÁä¦rvba.zip (118.14 KB)

±Ó¦Ó¦n¾Ç,¤£®¢¤U°Ý

TOP

¦^´_ 24# jcchiang
ÁÂÁÂ J ¤j¤j
§ó§ï¦n .¥Î°_¨Ó¤ñ¸û¶¶
ÁÂÁ§A«ü¾É ÁÂÁÂ
±Ó¦Ó¦n¾Ç,¤£®¢¤U°Ý

TOP

¦^´_ 23# BV7BW

¥i¥H¦h¥[¤@­Ó§PÂ_,·íC¦³¸ê®Æ¤~¥h°õ¦æ¸ê®Æ¼g¤J
If Not c Is Nothing Then c.Copy Sheets("¤u§@ªí2").[B4].Resize(, 3)

TOP

¦^´_ 21# jcchiang
J¤j¤j§A¦n
¸g´ú¸Õ«áµ²ªG§¹¥þ¥i¹B§@
¦AÂà¦Ü¹ê»Ú¤u§@ªí¤¤¤@¼Ë«Ü¶¶ºZ
¦³¹J¨ì1°ÝÃD«á¨Ó¤~ª¾¹D­ì¦]
¦bc.Copy Sheets("¤u§@ªí2").[B4].Resize(, 3)
¬O¥¼¶ñ¤J¸ê®Æ©Ò¥H·|¥X²{¿ù»~
²{¦bª¾¹D¥Îªk.¦h¼W¾Ç·|¹B¥Î§Þ¥©

¦A¦¸ÁÂÁ   J ¤j¤j«ü¾É ÁÂÁ§A
±Ó¦Ó¦n¾Ç,¤£®¢¤U°Ý

TOP

¦^´_ 21# jcchiang
ÁÂÁÂ J ¤j¤j
§Ú¦b´ú¸Õ¤@¤U¦A¦V§A³ø§i
ÁÂÁ§A
±Ó¦Ó¦n¾Ç,¤£®¢¤U°Ý

TOP

¦^´_ 20# BV7BW
1.ÃöÁä¦r¬d¸ß¨Ã¨S¦³´£¨ì½s¸¹¥u·|¿é¤J"A",©Ò¥H¶µ½s¬O¥H¥þ¬Û²Å¤ñ¹ï
   ½Ð±NIf a = X Or a.Offset(, 1) Like "*" & X & "*" Or a.Offset(, 2) = X Then
   §ï¬° If Join(Application.Transpose(Application.Transpose(a.Resize(, 3))), "") Like "*" & X & "*" Then  '§âSheets(3) D~FÄæ¦r¦ê¦X¨Ö°µ¼Ò½k¤ñ¹ï
2.Sheets("¤u§@ªí2").Range([b4], [b4].End(4).Resize(, 3)).ClearContents '²M°£¸ê®Æ
¬O¨Ì©Ò´£¨Ñªº¸ê®Æ¥h¼gªº,¦pªG¹ê»Ú¤u§@ªí¦³¤£¤@¼Ë½Ð¦Û¦æ­×§ï
3.¤u§@ªí3¤¤"A""B""C"Äæ¬O­ì´£¨Ñ¸ê®Æ´N¦³ªº,µ{¦¡¤¤¨ÃµL¨Ï¥Î

TOP

¦^´_ 19# BV7BW
J¤j¤j §A¦n
²Ä2ª©¥»¸g´ú¸Õ«á
1)¥i¥¿±`¹B§@©Ò»Ý¬d¸ß°Ê§@
¦³1ÂI¬OµLªk¦A¥Î"B"Äæ¬d¸ß
¥i»¡¥ÎA101´N¥i¬d¸ß.¦p¥ÎA´N¤£¥i¦æ.¥X²{¿ù»~*c.Copy Sheets("¤u§@ªí2").[b4].Resize(, 3)*
¦b"C"."D"Ä椤´N¥i¥H.¦p"D"Äæ¿é¤J"°ª"´N¥i¬d¸ß¹B§@
2)·í§ÚÂà´«¦Ü¹ê»Ú¨Ï¥Î¤u§@ªí®É
·|¥X²{¿ù»~*Sheets("¤u§@ªí2").Range([b4], [b4].End(4).Resize(, 3)).ClearContents*
©¹¤U´NµLªk¦A´ú¸Õ
¦A½Ð°Ý¤u§@ªí3¤¤"A""B""C"Äæ¦bµ{¦¡¤¤¦³¥Î³~.©Î¬O¦³»Ý­n?
¦b³o¸Ì¥ý¦VJ¤j¤j »¡ «D±`·PÁÂ
Åý§Ú¦A¦h¤@¼h²`¤J
¥i½ÐJ¤j¤j¦AÀ°µ{¦¡ª`¸Ñ
«D±`ÁÂÁ§A
ªþ¤W´ú¸ÕÀÉ
ÃöÁä¦rvba­×§ï - ½Æ»s.zip (130.91 KB)
±Ó¦Ó¦n¾Ç,¤£®¢¤U°Ý

TOP

¦^´_ 17# jcchiang
ÁÂÁÂJ¤j¤j¦^À³ÁÂÁÂ
²{§Ú¦A´ú¸Õ¤@¤U
²Ä¤@ª©¥»¬O«ö¤U«á¾ãµe­±¨S¦³¦^À³=·í¾÷
²{§Ú¦A¥H²Ä2ª©¥»´ú¸Õ
¦A¦V§A³ø§i´ú¸Õµ²ªG
¦A¦¸ÁÂÁ§A  J¤j¤j ÁÂÁÂ
±Ó¦Ó¦n¾Ç,¤£®¢¤U°Ý

TOP

¦^´_ 16# samwang
·PÁ S ¤j¤j¥ý¶i ³Ò¤ß«ü¾É ÁÂÁ§A
²{¾ã²Õµ{¦¡¤w§¹¥þ¥i²z¸Ñ¤]¥i¥¿±`¹B§@
¥ý«e¤£¯à«OÅ@°Ê§@.¥H¥[¤WÂê©w§Y¸Ñ°£°Ê§@.¦p¤U
Sub tt1()
Worksheets("¤u§@ªí2").Unprotect ("0123")   '«OÅ@¤u§@ªí2
Dim Arr, i&, N%, T, pos%, pos2%, pos3%
Sheets("¤u§@ªí2").Range("A4:D1000") = ""   '²M°£¤u§@ªí2ªº¸ê®Æ
T = [¤u§@ªí2!C2]     '¬d§ä¦r
Arr = Range([¤u§@ªí3!G1], [¤u§@ªí3!D65536].End(3))   '±N¤u§@ªí3¸ê®ÆD~GÄæ¦ì¸ê®Æ©ñ¦b¼Æ²Õ¤¤
For i = 2 To UBound(Arr)
     pos = InStr(Arr(i, 1), T): pos2 = InStr(Arr(i, 2), T)
     pos3 = InStr(Arr(i, 3), T)        '¬d¸ß¦r½T»{¦³µL¦b¤u§@ªí3ªºD¡BE¡BFÄæ
     If pos > 0 Or pos2 > 0 Or pos3 > 0 Then    '¦³§ä¨ì®É
         N = N + 1: Arr(N, 1) = Format(N, "00")     '¦³¸ê®Æ®ÉArrªº²Ä1Äæ¦ì¡A¦Û°Ê²£¥Í§Ç¸¹
         For j = 2 To 4: Arr(N, j) = Arr(i, j - 1): Next   '±N¤u§@ªí3¸ê®ÆD¡BE¡BFÄæ¸ê®Æ¼È®É¦s©ñ¦bArr
     End If
Next
If N > 0 Then   '½T»{¦³µL§ä¨ì¸ê®Æ
     With Sheets("¤u§@ªí2")
         .Range(.[A4], .Cells(N + 3, 1)).NumberFormatLocal = "@"   'AÄæ§ï¬°¤å¦r®æ¦¡
         .[A4].Resize(N, 4) = Arr   '¦³§ä¨ì¸ê®Æ±Ï¦^¶ñ¦Ü¤u§@ªí2
     End With
End If
Sheets("¤u§@ªí2").Protect ("0123")   '¨ú®ø«OÅ@¤u§@ªí2
End Sub
±Ó¦Ó¦n¾Ç,¤£®¢¤U°Ý

TOP

        ÀR«ä¦Û¦b : °ß¨ä´L­«¦Û¤vªº¤H¡A¤~§ó«i©óÁY¤p¦Û¤v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD