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.
'Early Binding
Dim xlApp As Excel.Application
Dim xlBooks As Excel.Workbooks
Set xlApp = New Excel.Application
Set xlBooks = xlApp.Workbooks
'Late Binding
Dim xlApp As Object
Dim xlBooks As Object
Set xlApp = CreateObject("Excel.Application")
Set xlBooks = xlApp.Workbooks
'Using Early Binding
Dim xlApp As Excel.Application
Dim xlBook As Workbook
Dim xlSheet As Worksheet
Set xlApp = New Excel.Application
Set xlBook = xlApp.Workbooks.OpenText(FileName:= _
"C:\tempGrd2File.xls", Origin:=xlWindows, _
StartRow:=1, DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, _
ConsecutiveDelimiter:=False, Tab:=False, _
Semicolon:=False, Comma:=False _
, Space:=False, Other:=True, _
OtherChar:="+", FieldInfo:=Array(Array(1, 1 _
), Array(2, 1), Array(3, 1), Array(4, 1)))
Set xlSheet = xlBook.ActiveSheet
xlSheet.Columns("B:B").EntireColumn.AutoFit
xlSheet.Columns("C:C").EntireColumn.AutoFit
xlSheet.Columns("D:D").EntireColumn.AutoFit
xlBook.SaveAs FileName:= _
"C:\tempfile.xls", FileFormat:=xlNormal, _
Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
xlBooks.Close
xlApp.Quit
Set xlSheet = Nothing
Set xlBook = Nothing
Set xlApp = Nothing