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 MySQL As String
Dim rs As ADODB.Recordset
Dim adoConn As ADODB.Connection
Set adoConn = New ADODB.Connection
adoConn.ConnectionString = "provider=sqloledb;data source=your_Server;Initial Catalog=your_database;user id=your_user;pwd=your_password"
adoConn.Open
MySQL = "Select field1,field2 From your_database.dbo.TABLE1"
Set rs = adoConn.Execute(MySQL)
Application.Cells(1, 1).Activate
Application.ActiveCell.CopyFromRecordset rs
adoConn.Close