- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 1# tomking
¬O³o¼Ë¶Ü?- Option Explicit
- Sub file_move()
- Dim fds As Object, fd As String, fo As String, fs As String, i As Integer
- Set fds = CreateObject("Scripting.filesystemobject")
- fd = [a1]
- fo = [b1]
- i = 1
- Do While Cells(i, "C") <> ""
- fs = Dir(fd & Cells(i, "C"))
- If fs = "" Then Exit Do
- If fds.FileExists(fo & fs) Then
- MsgBox "¥Ø¼Ð¸ê®Æ§¨,¦³¨Ó·½¤§¦PÀɦWÀÉ®×,½Ð½T»{", vbOKOnly, "¿ù»~°T®§"
- Exit Sub
- End If
- fds.copyfile fd & fs, fo & fs
- i = i + 1
- Loop
- End Sub
½Æ»s¥N½X |
|