If you are using VB Script and ADO to access the stored proc, one way that you can reference a cell in an excel spreadsheet is by passing the value in the cell as a parameter to the stored procedure. The code snippet would be something like this:Dim cmd As New ADODB.Command startDate = CDate(Range("C3").Value) Dim objParameter As ADODB.Parameter Set objParameter = cmd.CreateParameter("@startDate", adDBTimeStamp, adParamInput) objParameter.Value = startDate cmd.Parameters.Append objParameterI assume you are already doing something like this to identify the stored procedure to be executed: cmd.CommandText = "uspMyStoredProc " cmd.CommandType = adCmdStoredProc
The code I have highlighted in red is one way to refer to contents of a cell. There are other ways; often times people find it more convenient to use R1C1 notation especially when the cell from which you need to pick up the value changes.