ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Date formatting a file (https://www.excelbanter.com/excel-programming/304970-date-formatting-file.html)

Jako[_44_]

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


Bob Phillips[_6_]

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/





All times are GMT +1. The time now is 02:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com