![]() |
![]() |
|
|||||||
| 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 |
|
Board Regular
Join Date: Feb 2002
Location: Guderup, Denmark
Posts: 287
|
Hi
1. You could choose to alter regional/international setting / date which describes what way all window programs should display dates. Set it to dd-mm-yyyy. 2. You can format the cell to dd-mm-yyyy Selection.NumberFormat = "m/d/yyyy" regards Tommy |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|