I have code that pulls from a database and inputs into an excel sheet (shown below).
Selectstring = "SELECT " & c.Item("Ticket1") & _
", " & c.Item("Description")
fromString = "FROM " & ibmLib1 & "." & t.Item("NCType") & " " & t.Item("NCType") & _
"...