Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks
Craig "Ron Rosenfeld" wrote in message ... On Fri, 17 Aug 2007 16:15:33 -0500, "C Brandt" wrote: Ron: Thanks for the speedy reply. Unfortunately it chokes with TEXT highlighted and gives me a popup with "Compile Error, SUB or Function not defined. (Code Follows) Any clues? Thanks, Craig The formula I gave you is for a worksheet cell. In VBA, in place of the TEXT function, you can use the FORMAT function. Sub foo() Const DN As Date = #7/23/2006# Debug.Print "Acct " & Format(DN, "yyyy-mm-dd") & ".txt" End Sub -- Acct 2006-07-23.txt --ron |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Date Formating | Excel Worksheet Functions | |||
Date formating | Excel Discussion (Misc queries) | |||
testing for character strings within a cell | Excel Worksheet Functions | |||
Finding 13 character codes in text strings | Excel Worksheet Functions | |||
How to find number of pairs of strings from list of strings? | Excel Worksheet Functions |