| Access - Ερωτήσεις / Απαντήσεις Access + VBA... Εδώ δεν υπάρχουν όρια! |
| | Εργαλεία Θεμάτων | Τρόποι εμφάνισης |
|
#2
| |||
| |||
| Παράθεση:
Public Sub Copy_Folder() 'This example copy all files and subfolders from FromPath to ToPath. 'Note: If ToPath already exist it will overwrite existing files in this folder 'if ToPath not exist it will be made for you. Dim FSO As Object Dim FromPath As String Dim ToPath As String FromPath = "D:\Installation" '<< Change ToPath = "D:\MyApplication\" '<< Change 'If you want to create a backup of your folder every time you run this macro 'you can create a unique folder with a Date/Time stamp. 'ToPath = "C:\Users\Ron\" & Format(Now, "yyyy-mm-dd h-mm-ss") If Right(FromPath, 1) = "\" Then FromPath = Left(FromPath, Len(FromPath) - 1) End If If Right(ToPath, 1) = "\" Then ToPath = Left(ToPath, Len(ToPath) - 1) End If Set FSO = CreateObject("scripting.filesystemobject") If FSO.FolderExists(FromPath) = False Then MsgBox FromPath & " doesn't exist" Exit Sub End If FSO.CopyFolder Source:=FromPath, Destination:=ToPath MsgBox "You can find the files and subfolders from " & FromPath & " in " & ToPath End Sub |
« Προηγούμενο Θέμα
|
Επόμενο Θέμα »
| |
| ||||
| Θέμα | Δημιουργός | Forum | Απαντήσεις | Τελευταίο Μήνυμα |
| [Εκτύπωση] Αυτόματη εκτύπωση πολλών αρχείων excel με περισσότερα από ένα φύλλα ανά αρχείο | BizosDim | Excel - Ερωτήσεις / Απαντήσεις | 1 | 09-10-18 10:13 |
| [Excel07] Μέγεθος αρχείων excel | Meteora | Excel - Ερωτήσεις / Απαντήσεις | 3 | 15-04-17 19:42 |
| [Excel07] Ενοποίηση αρχείων excel-αυτόματη ενημέρωση | ΧΟΥ | Excel - Ερωτήσεις / Απαντήσεις | 5 | 17-02-13 23:46 |
Η ώρα είναι 23:25.




Θεματικός Τρόπος
