I need to run a stored procedure to fill a combo box:
ANy ideas on how to modify this to fill a combo?
With ActiveSheet.QueryTables.Add(Connection:= _
"ODBC;DRIVER=SQL Server;SERVER=10.4.1.47;APP=Microsoft Office 2003;DATABASE=CCApp;Trusted_Connection=Yes" _
, Destination:=Range("A1"))
.CommandText = Array("exec ledgerreport '" & varController & "'")
.Name = "Query from 10.4"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.PreserveColumnInfo = True
.Refresh BackgroundQuery:=False
End With
Bookmarks