Solved

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

Posted on 2011-02-20
2
245 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

710 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