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

[µo°Ý] ¸ê®ÆÂಾ

[µo°Ý] ¸ê®ÆÂಾ

¥»©«³Ì«á¥Ñ ounmaxz ©ó 2010-6-10 16:14 ½s¿è

½Ð¦U¦ì¤j¤jÀ°¦£¤@¤U±N¥[¯Z²Î­pªí¤ºªº¸ê®Æ
¸g¿é¤J¤é´Á«á±N¸ê®ÆÂಾ¨ì¥[¯Z²Î­pªí¤º
¦³¶ñ¤J¥[¯Z®É¶¡¤Î¥[¯Z¨Æ¥Ñ¤~²¾Âà
·Ð½Ð¦U¦ì¤j¤jÀ°¦£   ¥[¯Z.rar (13.53 KB)

Sub nn()
Dim Rng As Range, A As Range, Cell As Range
With Sheet2
Set Rng = .Range(.[N5], .[N7].End(xlUp)) '³]¸m¤ñ¹ïªº¼Ð·Ç°Ï°ì
End With
With Sheet1
For Each A In .Range(.[A1], .[A65536].End(xlUp)) '¦bsheet1ªºdÄæ¸ê®Æ´`Àô
    If Not Rng.Find(A, lookat:=xlWhole) Is Nothing Then '¦pªG¼Ð·Ç°Ï§ä¨ìdÄ檺­È
       If Cell Is Nothing Then Set Cell = A Else Set Cell = Union(Cell, A) '¦pªGÅܼÆCell¬O¤£¬Oª«¥ó´N±NdÄæ³]µ¹Cell§_«hCell´N·|±N­ì¨Ó½d³ò¼W¥[¤@Àx¦s®æA
    End If
Next
End With
Sheet3.Cells = "" '²MªÅSheet3¤º®e
Cell.EntireRow.Copy Sheet3.[A2] '§âSheet1²Å¦Xªº¦C½Æ»s¨ìSheet3ªºA1
   
End Sub
¥H¤Wµ{¦¡½X¬O¤p§Ì±q½׾½¥X¨Ó¶i¦æ¤p­×§ï«áªº
¤p§Ì§Æ±æ§ï´X­Ó¤p¦a¤è¦ý¬OµL©`¹ïVBA¤£¼ô±x
µL±q­×§ï·Ð½Ð¤j¤j¨ó§U¤@¤U
¤W­±ªº²Ä¤@¶µ¿z¿ï±ø¥ó¬O¤é´Á
¦ý¬O¤p§ÌÁٻݭn¦³NÄ榳¥[¯Zªº¤~¿z¿ï¥X¨Ó
²Ä¤G¬O¦¹µ{¦¡½X·|±N®æ¬O¤Î¤½¦¡±a¹L¨Ó¤p§Ì§Æ±æ¥u±a­È´N¦n
Sheet3.Cells = "" '²MªÅSheet3¤º®e¬O§_¯à§ï¦¨¥u²MªÅ¾A·í°Ï°ì
¥[¯Z¥Ó½Ðªí¤º[A5¡AH20]
·Ð½Ð¦U¦ì¤j¤jÀ°À°¦£
¥[¯Z.rar (39.62 KB)

TOP

¦^´_ 3# Hsieh


   ·PÁÂHsieh¤j¤jªºÀ°¦£¦³¨â­Ó°ÝÃD­n¦b³Â·Ð¤j¤jÀ°¦£
1.Ar(s) = Array("³æ¦ì", A.Value, A.Offset(, 1).Value, "", A.Offset(, 2).Value, Format(A.Offset(, 3).Value, "hh:mm"), Format(A.Offset(, 4).Value, "hh:mm"), A.Offset(, 5).Value)
       Ay(s + 1) = A.Resize(, 14).Value
       s = s + 1
¬õ¦âªº³¡¤À¯à¤£¯à§ï¦¨¥Ñªþ¥óSheet2¤ºªº­È¨Ó¨ú¥N
²Ä2ªº³¡¤À¦bªþ¥óSHEET1¸Ì¦³»¡©ú¤ñ¸û²M·¡

¦A¦¸³Â·Ð¤j¤j
¥[¯Z.rar (42.55 KB)

TOP

·PÁÂHsieh ªº¼ö±¡À°§UÅý¤p§Ì¨ü¯q¨}¦h

TOP

        ÀR«ä¦Û¦b : ¬°¤H³B¥@­n¤p¤ß²Ó¤ß¡A¦ý¤£­n¡u¤p¤ß²´¡v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD