Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how is the syntax to replace a date, recorded within a macro with a cell value ?


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

--
thomipilo
-----------------------------------------------------------------------
thomipilot's Profile: http://www.excelforum.com/member.php...fo&userid=1488
View this thread: http://www.excelforum.com/showthread.php?threadid=26512

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default how is the syntax to replace a date, recorded within a macro with a cell value ?

".....statestart={ts '" & format(Range("A1"),"YYYY-MM-DD hh:mm:ss") &
"'})......"

--
Regards,
Tom Ogilvy


"thomipilot" wrote in message
...

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

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

Now I would like to replace this date/time referring to a date/time
value of a cell within a worksheet to have a more efficient and
flexible query


--
thomipilot
------------------------------------------------------------------------
thomipilot's Profile:

http://www.excelforum.com/member.php...o&userid=14883
View this thread: http://www.excelforum.com/showthread...hreadid=265126



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro recorded... tabs & file names changed, macro hangs Steve Excel Worksheet Functions 3 October 30th 09 11:41 AM
How to FIX Recorded Macro JMay Excel Discussion (Misc queries) 7 May 23rd 07 04:13 AM
Recorded Macro want to know New Users to Excel 5 February 14th 07 12:46 PM
Recorded macro has hard cell contents. DocBrown Excel Discussion (Misc queries) 4 August 11th 06 07:16 PM
RECORDED MACRO PASTE'S DATE DIFFERENTLY TO MANUAL PASTE Pauldecan Excel Worksheet Functions 0 June 23rd 05 05:45 PM


All times are GMT +1. The time now is 07:37 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"