Hi All,
Is it possible to disable The "Look In:" field of the GetOpenFilename dialogue?
What I would like to do is to keep users from selecting folders other than the CurrentDirectory settings and if possible to keep the user from deleting,copying and pasteing to the files in the current dirrectory displayed.
The code I have is:
![]()
Dim objShell As Object Dim fileToOpen As Variant Dim CurSht As String Set objShell = CreateObject("WScript.Shell") With objShell .CurrentDirectory = "f:\masters" End With fileToOpen = Application.GetOpenFilename("Sheets (*.xls),*.xls", 1, "aai Add Sheets") If fileToOpen <> False Then CurSht = ActiveSheet.Name Sheets.Add Type:=fileToOpen ActiveSheet.Move after:=Worksheets(CurSht) End If
Bookmarks