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.
Const ForReading = 1
Dim FSO As Object, TF As Object, arr
Set FSO = CreateObject("Scripting.FileSystemObject")
'Set TF = FSO.OpenTextFile("\path\to\file.txt", ForReading)
Set TF = FSO.OpenTextFile(strFilePath, ForReading)
arr = Split(TF.ReadAll, vbCrLf)
TF.Close
For i = 0 To UBound(arr) - 1
' do stuff with arr(i)
Select Case i 'Line Number
Case 24 'Assign First & Last Name
x = InStr(1, arr(i), strSpace)
y = Mid(arr(i), 1, x)
ContactFirstName.Value = y
x = InStrRev(arr(i), strSpace)
y = Right(arr(i), x)
ContactLastName.Value = y
Case 25 'Assign Address
BillingAddress.Value = Trim(arr(i))
Case 26 'Assign City, State & Postal Code
...
...
End Select
Next