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.
Public Function ShowOpen(rCol_FilePatterns As Collection) As String
Dim lTyp_OpenFileName As OPENFILENAME
Dim lTyp_SaveFileName As OPENFILENAME
Dim lStr_FileSel As String
Dim lStr_FilePattern As String
Dim lInt_Idx As Integer
Dim lStr_FileSet() As String
lStr_FilePattern = vbNullString
For lInt_Idx = 1 To rCol_FilePatterns.Count
lStr_FileSet = Split(rCol_FilePatterns.Item(lInt_Idx), "::")
lStr_FilePattern = lStr_FilePattern & lStr_FileSet(0) & Chr(0) & lStr_FileSet(1) & Chr(0)
Next lInt_Idx
With lTyp_OpenFileName
.tLng_StructSize = Len(lTyp_SaveFileName)
.tLng_hWndOwner = 0
.tLng_hInstance = 0
.tStr_Filter = lStr_FilePattern
.tStr_File = Space(254)
.tLng_MaxFile = 255
.tStr_FileTitle = Space(254)
.tLng_MaxFileTitle = 255
.tStr_InitialDir = "C:\"
.tStr_Title = "Select Spread Sheet to Import"
.tLng_flags = 0
End With
If (GetOpenFileName(lTyp_OpenFileName)) Then
lStr_FileSel = Trim(lTyp_OpenFileName.tStr_File)
Else
lStr_FileSel = vbNullString
End If
ShowOpen = lStr_FileSel
End Function
Set cExl_Appl = CreateObject("Excel.Application")
cExl_Appl.Workbooks.Close
cExl_Appl.Quit
Set cExl_Appl = Nothing