Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Change date format to text format

Temp7 = Format(temp4, "yyyy")
Temp8 = Format(Left(MonthName(Month(DateAdd("m", -1, Now_
()))), 3), "mmm")

I have a special database formula in VB editor as shown:
DBR4(""accounts"",""Retail""," & Temp8 & "," & Temp7_
& ",""EUR"")
this formula appears in excel as:
DBR4("accounts","Retail",Oct,2003,"EUR")which gives an
error because Oct and 2003 are not in "".

Temp7 shows up like "2003" and Temp 8 "Oct". To retrieve
the right formula in excel, I have to write them
like ""Oct"" in VB. But with Temp's I can not do that???
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
Need help with converting CUSTOM format/TEXT format to DATE format Deo Cleto Excel Worksheet Functions 6 June 2nd 09 08:14 PM
Change Date Format to Specific Text Format When Copying [email protected] Excel Discussion (Misc queries) 4 December 23rd 08 03:43 PM
Macro to Change Changing Date Format Data to Text Rod Bowyer Excel Discussion (Misc queries) 3 October 11th 07 12:02 PM
how do i change text format date to date (i.e., mm/yy to mm/dd/yyy lindsey Excel Discussion (Misc queries) 1 July 27th 07 10:05 PM
CHANGE TEXT TO DATE FORMAT deniseh Excel Discussion (Misc queries) 2 September 15th 05 12:48 PM


All times are GMT +1. The time now is 11:52 AM.

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

About Us

"It's about Microsoft Excel"