Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dim Filter As String, Title As String
Dim FilterIndex As Integer
Dim File_Lotus As Variant
' File filters
Filter = "Excel Files (*.xls),*.xls," & _
"Text Files (*.txt),*.txt," & _
"All Files (*.*),*.*"
' Default Filter to *.*
FilterIndex = 3
' Set Dialog Caption
Title = "Select a File to Open"
' Select Start Drive & Path
ChDrive (ThisWorkbook.Path)
ChDir (ThisWorkbook.Path)
With Application
' Set File Name to selected File
File_Lotus = .GetOpenFilename(Filter, FilterIndex, Title)
' Reset Start Drive/Path
ChDrive (Left(.DefaultFilePath, 1))
ChDir (.DefaultFilePath)
End With
' Open File
If File_Lotus = False Then
MsgBox " No file was selected "
Exit Sub
End If
Workbooks.Open (File_Lotus)
Set LotusBook = ActiveWorkbook