- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 257
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-27
|
¥»©«³Ì«á¥Ñ Hsieh ©ó 2012-7-20 09:20 ½s¿è
¦^´_ 1# sweetkitty
©Î³\ÁÙ¦³¨ä¥L¿ìªk(¦p¶}³qDDE³q¹D)
¤ñ¸û¤£ªá¸£µ¬ªº§@ªk
§Q¥ÎONTIME¤èªk¡A¨C¬í¥h¶]¸ê®Æ§¨¤ºªºÀɮצWºÙ
µM«á°O¿ý¦bA¡BBÄ椺¡A´N¯à§PÂ_¬O§_¦³·s¼WÀÉ®×
¤@¯ë¼Ò²Õ- Sub auto_open()
- fd = "D:\raw data\" '¸ê®Æ§¨
- fs = Dir(fd & "*.xls")
- Set sht = ThisWorkbook.Sheets(1)
- Do Until fs = ""
- If IsError(Application.Match(fs, sht.Columns("A"), 0)) Then
- With Workbooks.Open(fd & fs)
- sht.Cells(Rows.Count, 1).End(xlUp).Offset(1).Resize(, 2) = Array(fs, .Sheets(1).Cells(2, 3).Value)
- .Close 0
- End With
- End If
- fs = Dir
- Loop
- Application.OnTime Now + TimeValue("00:00:01"), "auto_open"
- End Sub
½Æ»s¥N½X |
|