![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Feb 2002
Posts: 42
|
I have a line in VBA as follows
activecell.value = date but because xl is american it puts the month first then the day - I want it the other way around. I can see in help that there is an xlDateOrder function but I don't know how to put it into the code can anyone help. |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Monterrey, Mexico
Posts: 1,433
|
How does this work for you:
ActiveCell.Value = Format(Date, "dd/mm/yyyy")
__________________
Kind regards, Al Chara |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|