Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I change all dates on a sheet from American format (mm/dd/yyyy) to English format (dd/mm/yyyy)? Is there a way to do this with a VBA macro?

share|improve this question

migrated from stackoverflow.com Dec 12 '09 at 15:11

This question came from our site for professional and enthusiast programmers.

2 Answers 2

Sub enFormat()    
Sheets("Sheet1").Cells.NumberFormat = "dd/mm/yyyy"    
End Sub
share|improve this answer

Select the cells you want to change, open their format dialog (on old versions it was Ctrl+1) and change it.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.