how is the syntax to replace a date, recorded within a macro with a cell value ?

  • Thread starter Thread starter thomipilot
  • Start date Start date
T

thomipilot

I have recorded a data source query from an external file with the macr
recorder.
This query included a filter, the date and time:

......statestart>={ts '2004-09-1
09:14:14'})......

Now I would like to replace this date/time referring to a date/tim
value of a cell within a worksheet to have a more efficient an
flexible quer
 
".....statestart>={ts '" & format(Range("A1"),"YYYY-MM-DD hh:mm:ss") &
"'})......"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top