sharky12345
Well-known Member
- Joined
- Aug 5, 2010
- Messages
- 3,421
- Office Version
- 2016
- Platform
- Windows
I'm using this to browse to a folder to save the current workbook;
Is there a way I can prevent the user from choosing to save on their desktop?
Code:
Function GetInstallFolder() As String
Dim fldr As FileDialog
Dim sItem As String
Set fldr = Application.FileDialog(msoFileDialogFolderPicker)
With fldr
.Title = "Toolbox"
.AllowMultiSelect = False
.InitialFileName = Application.DefaultFilePath
If .Show <> -1 Then GoTo NextCode
sItem = .SelectedItems(1)
End With
NextCode:
GetInstallFolder = sItem
NewInstallFrm.TextPath.Value = sItem
Set fldr = Nothing
End Function
Is there a way I can prevent the user from choosing to save on their desktop?