
X1 = MsgBox("VUOI COLLEGARE LA CARTELLA CONTENTE I FLUSSI DA IMPORTARE", vbYesNo, "COLLEGA CARTELLA FLUSSI")
If X1 = vbYes Then
Set F = Application.FileDialog(msoFileDialogFolderPicker)
F.Title = "Seleziona la cartella contenente i flussi da importare"
CARTFLUSSI = F.Show
END IF
RANGE ("A1") = CURDIR |
Private Sub Sfoglia_Files()
Dim strPath As String
Dim fd As FileDialog
Dim objfd As Variant
Set fd = Application.FileDialog(msoFileDialogFolderPicker)
With fd
.Show
For Each objfd In .SelectedItems
strPath = objfd
Next objfd
End With
If strPath = "" Then GoTo Uscita
Uscita:
Set fd = Nothing
End Sub
|
........................
Dim lngCount As Long
With Application.FileDialog(msoFileDialogFolderPicker)
.AllowMultiSelect = False
.Show
.Title = "SCEGLI CARTELLA DA COLLEGARE"
For lngCount = 1 To .SelectedItems.Count
Foglio3.Range("A6") = .SelectedItems(lngCount)
Next lngCount
End With
...................................................... |
