Solved

How is possible to change "save as" date format to capital letters?

Posted on 2011-02-20
2
241 Views
Last Modified: 2012-05-11
I use the attached code in a "save as" macro.
How should I change it so that the month format is in capital letters
ie "\2011\FEB 2011" instead of "\2011\Feb 2011"
Thanks for your help
Des
strDirname = "\" & Format(Date, "yyyy") & "\" & Format(Date, "mmm yyyy")

Open in new window

0
Comment
Question by:spar-kle
2 Comments
 
LVL 50

Accepted Solution

by:
Dave Brett earned 500 total points
ID: 34939249
hth

strDirname = UCase$("\" & Format(Date, "yyyy") & "\" & Format(Date, "mmm yyyy"))

Open in new window

0
 

Author Closing Comment

by:spar-kle
ID: 34939281
Thanks Dave
I knew it would be easy, played aound with UCASE but couldn't figure it out.
Des
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now