Thread: SQL Connection
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Adul Adul is offline
external usenet poster
 
Posts: 2
Default SQL Connection

Hi All,


I want to have the code for .Connection = ???? to
represent ActiveWorkbook sheets("Temp 1")in the following
part;


With Sheets("TempData").Range("a1").QueryTable
.Connection = ????
.CommandText = myCmd
.Refresh BackgroundQuery:=False
End With


Thanks,
Adul