View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Abdul[_6_] Abdul[_6_] is offline
external usenet poster
 
Posts: 8
Default Refresh Modified Query From Same Sheet

Hi All,

How can I refresh a (modified thru code based on value
from sheet1) query from another sheet from the workbook?

I want to have the code for .Connection = ???? to
represent activeworkbook sheeets("Temp 1")


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


thanks All

Abdul