- ©«¤l
- 91
- ¥DÃD
- 5
- ºëµØ
- 0
- ¿n¤À
- 130
- ÂI¦W
- 0
- §@·~¨t²Î
- Win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2016-5-14
- ³Ì«áµn¿ý
- 2020-5-17
|
¦^´_ 1# rouber590324
°Ñ¦Ò¬Ý¬Ý- Sub test()
- Dim folder As String '¸ê®Æ
- Dim source ' As String '¨Ó·½ÀÉ
- Dim source2, source3, source4 As String
- Dim dest As String '¥ØªºÀÉ
- Dim p As Integer
- Dim s As Integer
- Dim i As Long
- folder = "D:\ABC" '¦s¨ú¥Øªº¦ì¸m
-
- source = Application.GetOpenFilename(MultiSelect:=True) '¨Ó·½
- If Not IsArray(source) Then: MsgBox "¤W¶Ç¥¢±Ñ¡A½Ð¿ï¨ú¥¿½T¨Ó·½ÀɮסC": Exit Sub
- For Each source2 In source
- source3 = Split(source2, "\")
- source4 = source3(UBound(source3))
-
- dest = IIf(Right(folder, 1) = "\", folder, folder & "\") & source4
-
- If Dir(dest) <> "" Then
- MsgBox msg1
- Else
- FileCopy source2, dest
- MsgBox source2 & " ¤w¤W¶Ç¡C"
- End If
- Next
- End Sub
½Æ»s¥N½X |
|