I have a macro which runs by changing specified date as follows
[code/]
datetoextract = (#3/1/2009#)
[/code]
The date format is mm/dd/yyyy
now i need to dynamically change the date froma different format "date=2009-02-01" (yyyy-mm-dd)
by
[code/]
xxday = Right(Right(Range("b2").Value, 10), 2)
xxMonth = Mid(Right(Range("b2").Value, 10), 6, 2)
xxYear = Left(Right(Range("b2").Value, 10), 4)
date = (xxMonth & "/" & xxday & "/" & xxYear)[/code]
The # in the first bit of code has me stumped - how do I set up the code to run the macro such as
datetoextract = (#date#) ????
[code/]
datetoextract = (#3/1/2009#)
[/code]
The date format is mm/dd/yyyy
now i need to dynamically change the date froma different format "date=2009-02-01" (yyyy-mm-dd)
by
[code/]
xxday = Right(Right(Range("b2").Value, 10), 2)
xxMonth = Mid(Right(Range("b2").Value, 10), 6, 2)
xxYear = Left(Right(Range("b2").Value, 10), 4)
date = (xxMonth & "/" & xxday & "/" & xxYear)[/code]
The # in the first bit of code has me stumped - how do I set up the code to run the macro such as
datetoextract = (#date#) ????