Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Date formatting a file

With this code i can load a file called "180704 AB.xls".


= Format(Date, "ddmmyy") & " AB.xls"


But what i want to do is load a file with a month prefix.
e.g "July 2004 AB.xls".

Could someone please tell me how i could do this in VBA.

Many thanks

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Date formatting a file

Format(Date, "mmm yyyy") & " AB.xls"


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Jako " wrote in message
...
With this code i can load a file called "180704 AB.xls".


= Format(Date, "ddmmyy") & " AB.xls"


But what i want to do is load a file with a month prefix.
e.g "July 2004 AB.xls".

Could someone please tell me how i could do this in VBA.

Many thanks.


---
Message posted from http://www.ExcelForum.com/



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
conditional formatting for cell date to equal today's date Sistereinstein Excel Worksheet Functions 2 September 10th 12 07:53 PM
Recovering File Info Specifically Save Date or Print Date Gadgetgw Excel Discussion (Misc queries) 4 October 6th 08 08:43 PM
Is it possible to link cell formatting in Excel from file to file KimW Excel Discussion (Misc queries) 4 August 17th 06 07:03 PM
Date Colum Date Formatting & Validation Mike[_81_] Excel Programming 1 June 7th 04 01:59 AM
Macro drops date formatting to csv file bslater Excel Programming 1 October 23rd 03 08:00 PM


All times are GMT +1. The time now is 10:40 AM.

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"