View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Dick Kusleika[_4_] Dick Kusleika[_4_] is offline
external usenet poster
 
Posts: 595
Default OLE DB Query Using Cell Value as Variable

On Mon, 24 Mar 2008 12:13:14 -0700 (PDT), Jerry wrote:

Is it possible to use a cell value in my query? My Command Text is
EXEC sp_get_excel and I'd like to add a date to that by entering it in
an empty cell.


Jerry: I'm not familiar with that syntax in CommandText. Is that running a
stored procedure? What database is on the back end? Could you use SQL
syntax instead of a stored procedure?
--
Dick Kusleika
Microsoft MVP-Excel
http://www.dailydoseofexcel.com