patriciaxxx
Programmer
I need to open the Office.FileDialog folder browser to select a destination to write one or more files to
I need to have a message prompting the user if one or more of the files already exists and offer the option to overwrite or cancel each individual file with the added functionality to overwrite all or cancel all
Below is my code
Private Sub cmdExtract_Click()
On Error GoTo Err_Handler
Dim fDialog As Office.FileDialog
Dim strPath As String
'Set up the File dialog box.
Set fDialog = Application.FileDialog(msoFileDialogFolderPicker)
With fDialog
.Title = "Browse" 'Set the title of the dialog box.
If .Show = True Then 'Show the dialog box.
ExtractBlobAll strPath
End If
End With
Exit_Handler:
Exit Sub
Err_Handler:
MsgBox Err.Description, vbOKOnly + vbExclamation, "ERROR: " & Err.Number
Resume Exit_Handler
End Sub
I need to have a message prompting the user if one or more of the files already exists and offer the option to overwrite or cancel each individual file with the added functionality to overwrite all or cancel all
Below is my code
Private Sub cmdExtract_Click()
On Error GoTo Err_Handler
Dim fDialog As Office.FileDialog
Dim strPath As String
'Set up the File dialog box.
Set fDialog = Application.FileDialog(msoFileDialogFolderPicker)
With fDialog
.Title = "Browse" 'Set the title of the dialog box.
If .Show = True Then 'Show the dialog box.
ExtractBlobAll strPath
End If
End With
Exit_Handler:
Exit Sub
Err_Handler:
MsgBox Err.Description, vbOKOnly + vbExclamation, "ERROR: " & Err.Number
Resume Exit_Handler
End Sub