Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I found a way to work around it. I put the text I wanted into a cell
and them asigned the cellvalue to the variable. THANKS Pablo wrote: Here is a piece of my code. It will not compile. I want SDate to be a text string in the format of "8/10/06 00:00:00 AM" and EDate "8/10/06 11:59:59 PM". I preffered if this values were yesterday's dates, but they have to change daily. Any suggestions? Thanks. My Code: Dim SDate As String Dim EDate As String Set SDate = "TEXT(Month(TODAY())&" / "&DAY(TODAY())&" / "&Year(today()) & ""00:00:00 AM""" Set SDate = "TEXT(Month(TODAY())&" / "&DAY(TODAY())&" / "&Year(today()) & ""11:59:59 PM""" |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Advanced text function (combining text) | Excel Worksheet Functions | |||
get date function result as text | Excel Worksheet Functions | |||
Date function/Text issue | Excel Worksheet Functions | |||
Combining Text and Date for VLOOKUP | Excel Worksheet Functions |