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 Sub SendData()
WSID = Environ("COMPUTERNAME")
UID = Environ("USERNAME")
Dim intI() As Int16 = {4, 5, 6, 7}
With XL.ActiveSheet.QueryTables.Add(Connection:= _
"ODBC;DRIVER=SQL Server;SERVER=ONLINE_SERVER;UID=" & UID & ";WSID=" & WSID & ";DATABASE=weboms;Trusted_Connection=Yes" _
, Destination:=XL.Range("A1"))
.CommandText = SQL
.Name = "ShippingReport"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = Excel.XlCellInsertionMode.xlInsertDeleteCells
.SavePassword = True
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.PreserveColumnInfo = True
.Refresh()
End With
End Sub