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

[µo°Ý] ¦¹¦¬´Mvba¼W¥[¸U¥Î¦r¤¸

[µo°Ý] ¦¹¦¬´Mvba¼W¥[¸U¥Î¦r¤¸

¥H¤U¬O§Ú¼gªº¦¬´M¨Ã¦Cªíµ{¦¡
¦ý§Æ±æ¯à°÷§ïÅܦ¨  M3¿é¤J"±i"   ´N¦C¥X¦³"±i"³o­Óªº¦rªº
¥Ø«e¬O¿é¤J§¹¾ã¥þ¦W¤~·|¦Cªí....§Æ±æ¦U¦ì¤j¤jÀ°¦£!^^ ·P®¦¤£ºÉ!   


Sub ²Î¤@¬d¸ß¥\¯à()
'Ãö³¬Åã¥Ü
Application.ScreenUpdating = False

Set Name = Sheets("¬d¸ß³B²z°Ï").Range("M3")
Sheets("²Î¤@").Select
G = [A65536].End(xlUp).Row
For i = 2 To G
    '¦pªG¦³¤@¼Ë ´N¦V¥ª¨Ã½Æ»s Âà­È¶K¤W¦Ü¬d¸ß°Ï
    If Sheets("²Î¤@").Cells(i, 9) = Name Then
    Sheets("²Î¤@").Select
    Cells(i, 9).Select
    Range(Selection, Selection.End(xlToLeft)).Select
    Selection.Copy
    Sheets("¬d¸ß³B²z°Ï").Select
    c = [A65536].End(xlUp).Row
    Cells(c + 1, 1).Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
        :=False, Transpose:=False
End If
Next i
Sheets("¬d¸ß³B²z°Ï").Select
Application.ScreenUpdating = True  '¶}±ÒÅã¥Ü
MsgBox "²Î¤@¬d¸ß§¹¦¨"
End Sub

¦^´_ 18# Hsieh
H¤j¤j ¦A¦¸³Â·Ð±z
  1. Sub Äé¤J¸ê®Æ()
  2. Application.ScreenUpdating = False
  3. Set d = CreateObject("Scripting.Dictionary")  '³Ð«Ø¦r¨åª«¥ó
  4. With Sheets("¦©´Ú")
  5. Name = "GH" '¬d¸ßÃöÁä¦r
  6. For Each a In .Range(.[A2], .[A65535].End(xlUp))
  7. mystr = Format(a, "yyyymmdd hhmmss") & a.Offset(, 8)
  8. d(mystr) = a.Offset(, 8)
  9. Next
  10. End With
  11. For Each sName In Array("1", "2", "3")

  12.     With Sheets(sName)  '¥H¤W¤u§@ªí°Ï¬q
  13.     g = .[A65536].End(xlUp).Row   '¥H¤W¤u§@ªíªº¸ê®Æ§À
  14.     For i = 2 To g
  15.     mystr = Format(.Cells(i, 1), "yyyymmdd hhmmss") & .Cells(i, 9) '¤£­«½Æ·Ç«h¦r¦ê
  16.         If .Cells(i, 9) Like "*" & Name & "*" And IsEmpty(d(mystr)) Then '¦r¨å¤¤¨S¥X²{¹LIÄæ¥B¥]§t¬d¸ßÃöÁä¦r
  17.         Sheets("¨®¤Í·|¦©´Ú").[A65536].End(xlUp).Offset(1).Resize(, 9) = .Cells(i, 1).Resize(, 9).Value  '±NA:IÄæ¼g¤JSheets("¦©´Ú")
  18.          d(mystr) = .Cells(i, 9).Value  '±NIÄæ®ÚAÄ椺®e¦s¤J¦r¨å
  19.         End If
  20.     Next i
  21.     End With 'µ²§ô¥H¤W¤u§@ªí°Ï¬q±Ô­z
  22. Next
  23. Sheets("¦©´Ú").Select
  24. Application.ScreenUpdating = True  '¶}±ÒÅã¥Ü
  25. MsgBox "¬d¸ß§¹¦¨"
  26. End Sub
½Æ»s¥N½X
¦pªGÁÙ­n¦A·s¼W°»´úÄæ¦ì ¬O§_­n­×§ï«Ü¦h¦a¤è= =?
¦]¬°²{¦bµ§¼Æ¶V¨Ó¶V¦h  ®É¶¡§Ú¤w¸g¼W¥[¦Ü  yyyymmdd hhmmss
¦ýÁÙ¬O·|¦³­«½Æªº¥i¯à.....  ·Q¦A¼W¥[ D¸òHÄd¥h¦r¨å¤º¤ñ¹ï   
§Ú¦Û¤v´ú¸Õ±N³o¨â­ÓÄæ¦ì¶i¥h  ¦ý¨SÔ£¤ÏÀ³= = " ¥ú­×¥¿D¸òHÄd  ¥LÁÙ¬O»{¬°¨º¬O¤@¼Ëªº..((¥Nªí±ø¥ó¨S·s¼W¨ì¦r¨å¤º))

¦pªG¥i¥H ½ÐÀ°§Ú­×¥¿¨â­Óª©¥»...  ¤@­Ó¬O¼W¥[ D¸ò H Äæ¦ì  
¤@­Ó¬O¥þ³¡¸ê®Æ¤ñ¹ï    A¨ìIÄd³£¼g¤J¦r¨å  .....·PÁ¦U¦ì¤j¤j!!

½Ð¦U¦ì¤j¤jÀ°¦£¸Ñµª@@"
¦Û¥Î¨®¤]¥i¥Hñ±b³á!
¤­¤d¤¸¥[ªoª÷¥[¤Jªo½c«áÁÙ¦^õX±z6200¤¸
ºÖ§Q©ô¨®¤Í·|power-want.com

TOP

¦^´_ 26# Hsieh
¦^´_ 25# GBKEE

    ÁÂÁ¨â¦ì¤j¤j¦^´_^^  ·PÁ±z­Ì~!
¦Û¥Î¨®¤]¥i¥Hñ±b³á!
¤­¤d¤¸¥[ªoª÷¥[¤Jªo½c«áÁÙ¦^õX±z6200¤¸
ºÖ§Q©ô¨®¤Í·|power-want.com

TOP

¦^´_ 22# die78325

Dim sName As Worksheet
For Each sName In Sheets(Array("²Î¤@", "¨ä¥L¤u§@ªí"))
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 24# stillfish00
22#  For Each ªº±±¨îÅܼƥ²¶·¬OVariant©ÎObject
Dim sName As String  §ï¦¨¥¿½Tªº«Å§i  Dim sName As Variant
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 22# die78325
ªüªü , ©êºp!
¨S¹ê»Ú¥h¶]¨Sµo²{³o¿ù»~
§â«Å§iªºAs String®³±¼À³¸Ó´N¥i¥H¤F

TOP

¦^´_ 21# stillfish00


    §Ú§âÅܼƩw¸q§R°£ (Dim.......)

¿ï¾Üsheets( ªº  "  §R°£  

´N¥i¥H¤F    ·PÁ¤j¤jµ¹ªºÆF·P
.
¦Û¥Î¨®¤]¥i¥Hñ±b³á!
¤­¤d¤¸¥[ªoª÷¥[¤Jªo½c«áÁÙ¦^õX±z6200¤¸
ºÖ§Q©ô¨®¤Í·|power-want.com

TOP

¦^´_ 21# stillfish00


    ¥¦Åã¥Ü½sĶ¿ù»~

For Each ªº±±¨îÅܼƥ²¶·¬OVariant©ÎObject
¦Û¥Î¨®¤]¥i¥Hñ±b³á!
¤­¤d¤¸¥[ªoª÷¥[¤Jªo½c«áÁÙ¦^õX±z6200¤¸
ºÖ§Q©ô¨®¤Í·|power-want.com

TOP

¦^´_ 20# die78325
³o¼Ë¶Ü?

Dim sName As String
For Each sName In Array("²Î¤@", "¨ä¥L¤u§@ªí")
    With Sheets(sName)  '²Î¤@¤u§@ªí°Ï¬q

    '¤¤²¤
   
    End With 'µ²§ô²Î¤@¤u§@ªí°Ï¬q±Ô­z
Next

TOP

¦^´_ 18# Hsieh

¥H¤U³o¬q  ¦p¦ó­×§ï¦¨­nÅý¥L¶]¨â­Ó©Î¦h­Ó¤u§@ªí°Ï¬q
³oÃä¸ÑÄÀ¤@¤U    ´N·N«ä¬O§Ú¦¬´M "  ¸¹¨¤  "  ¥L·|¦¬´M  
²Î¤@¤u§@ªí°Ï¬q  ¸ò XX¤u§@ªí°Ï¬q  XX¤u§@ªí°Ï¬q   §Ú¥Ø«e¬O½Æ»s¥H¤U°Ï¬q¦A§ó§ïWith Sheets("²Î¤@")   ²Î¤@ªº³¡¤À  ¦ý¬Oµ{¦¡½X«K«Ü¦h À³¸Ó¦³§ó¦nªº¿ìªk§a  

    With Sheets("²Î¤@")  '²Î¤@¤u§@ªí°Ï¬q
G = .[A65536].End(xlUp).Row   '²Î¤@¤u§@ªíªº¸ê®Æ§À
For i = 2 To G
mystr = Format(.Cells(i, 1), "yyyymmdd hhmm") & .Cells(i, 9) '¤£­«½Æ·Ç«h¦r¦ê
    If .Cells(i, 9) Like "*" & Name & "*" And IsEmpty(d(mystr)) Then '¦r¨å¤¤¨S¥X²{¹LIÄæ¥B¥]§t¬d¸ßÃöÁä¦r
    Sheets("¬d¸ß³B²z°Ï").[A65536].End(xlUp).Offset(1).Resize(, 9) = .Cells(i, 1).Resize(, 9).Value  '±NA:IÄæ¼g¤JSheets("¬d¸ß³B²z°Ï")
     d(mystr) = .Cells(i, 9).Value  '±NIÄæ®ÚAÄ椺®e¦s¤J¦r¨å
    End If
Next i
End With 'µ²§ô²Î¤@¤u§@ªí°Ï¬q±Ô­z
¦Û¥Î¨®¤]¥i¥Hñ±b³á!
¤­¤d¤¸¥[ªoª÷¥[¤Jªo½c«áÁÙ¦^õX±z6200¤¸
ºÖ§Q©ô¨®¤Í·|power-want.com

TOP

        ÀR«ä¦Û¦b : ¦³¤ß´N¦³ºÖ¡A¦³Ä@´N¦³¤O¡A¦Û³yºÖ¥Ð¡A¦Û±oºÖ½t¡C
ªð¦^¦Cªí ¤W¤@¥DÃD