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

¸ÑBug

¸ÑBug

¦³¤W¦Ê­ÓÀÉ®× , ¦pªþ¥ó¤¤ªº"¤WµØ" , "¥úÜg"ÀÉ®× ,
ÀÀ¥H¦p¤Uµ{¦¡§Û¼g¦Ü"ReceiveList"ÀÉ®× ,

¥Ø«e´ú¸Õ®É Msgbox file ¥¿½T , ¦ý MsgBox LastRow «oÅã¥Ü 1048576 , ¥Bµ{¦¡¤¤Â_ ,
½Ð°Ý¨ºùئ³°ÝÃD§r ? TKS .


Sub M1()

    Dim path$, file$, first$
    path = "C:\Users\oliwa\Desktop\5-¦¨¥»¤ÀªR¸ê®Æ\10501¶i³f\"
    file = Dir(path & "*.xls")
   
    If file = "" Then Exit Sub
    first = file
   
    Do
        MsgBox file
        Workbooks.Open (path & file)
        StartRow = Range("A1:A10").Find("µo²¼¸¹½X").Row + 1
        CopyRow = Cells(1, "A").End(xlDown).Row
        Range("A" & StartRow & ":K" & CopyRow).Select
        Selection.Copy
        
        Windows("ReceiveList.xlsm").Activate
        LastRow = Cells(1, "A").End(xlDown).Row
        MsgBox LastRow
        Range("A" & LastRow + 1).Select
        Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
            :=False, Transpose:=False
        
        Windows(path & file).Activate
        ActiveWindow.Close
        
        file = Dir
   
    Loop While file <> "" And first <> file
   
    ActiveWorkbook.Save

End Sub

ReceiveList.rar (20.37 KB)

·PÁÂ.......

TOP

´ú¸Õµ²ªG¯»²z·Q , ·PÁ lkp187 ªº¨ó§U !!

TOP

        ÀR«ä¦Û¦b : ¨C¤ÑµL©Ò¨Æ¨Æ¡A¬O¤H¥Íªº®ø¶OªÌ¡A¿n·¥¡B¦³¥Î¤~¬O¤H¥Íªº³Ð³yªÌ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD