Personalized dates

MiguelCUN

New Member
Joined
Jan 5, 2018
Messages
2
Hi everybody.

I am new, this is my first post.

We in Spanish use a form of dates like: Viernes, 5 de Enero de 2018 (is like: Friday, 5 of January of 2018).

In Excel I can use in order to obtain this format the following code: dddd, d "de" mmmm "de" aaaa

But I don't know how to use this code with .NumberFormat, the double quotation is a problem.

Sorry for my English.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
This is an English version of your request.
With number format custom

in the Type area, the Spanish equivalent of

dddd, d "de" mmmm "de" yyyy

Hope this helps

in VBA possibly
.NumberFormat = "dddd, d ""de"" mmmm ""de"" yyyy"
 
Last edited:
Upvote 0
Thank you very much Dave!

Can I ask an additional question?

In my computer friday and january appears all lower case. How can I do in order that only the first letter of the day and month be uppercase (Friday and January).
 
Upvote 0
Your system is quite different from my system; consequently, I cannot help much more.

You could start a new thread indicating Spanish translation and VBA help.

There is an Excel function called Proper. The VBA for the function would be something like

Target.Value = Application.WorksheetFunction.Proper(Target.Value)

or possibly the Spanish equivalent of vbProperCase
 
Last edited:
Upvote 0

Forum statistics

Threads
1,225,754
Messages
6,186,826
Members
453,377
Latest member
JoyousOne

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top