#1   Report Post  
Posted to microsoft.public.excel.programming
jon jon is offline
external usenet poster
 
Posts: 18
Default Date

Hi, sorry to bother you all with a mundane problem but my
help file won't work and i can't get anything out of it.

i've got a program which needs the date putting in very
often. a userform pops up at the beginning to check that
it has the correct date, and then fills all the cells in
automatically.

My problem is the format of the date in the userform, i
need: 10 August 2004, but it always comes up with )
08/10/2004, the american format, i think.I have tried
formatting the cell, but it doesn't do it automatically
and it comes up with 08 October 2004 when you change it
manually.

Thanks for your help

Is there a way of forcing excel to put the date in the
desired format.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Date

One way:

Dim rCell As Range
For Each rCell In Range("DateRange")
With rCell
.Value = Date
.NumberFormat = "dd mmmm yyyy"
End With
Next rCell

In article ,
"Jon" wrote:

Hi, sorry to bother you all with a mundane problem but my
help file won't work and i can't get anything out of it.

i've got a program which needs the date putting in very
often. a userform pops up at the beginning to check that
it has the correct date, and then fills all the cells in
automatically.

My problem is the format of the date in the userform, i
need: 10 August 2004, but it always comes up with )
08/10/2004, the american format, i think.I have tried
formatting the cell, but it doesn't do it automatically
and it comes up with 08 October 2004 when you change it
manually.

Thanks for your help

Is there a way of forcing excel to put the date in the
desired format.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Concatenate including a date so that the date appears as a date Zembu Excel Worksheet Functions 2 January 6th 10 06:09 PM
date in Cell to change colors if the date is beyond today's date Pete Elbert Excel Discussion (Misc queries) 2 June 6th 09 06:31 AM
Making a date go red, if date passes todays date. Jamie Excel Worksheet Functions 2 September 9th 08 02:14 PM
Report Date - Date Recv = Days Late, but how to rid completed date MS Questionnairess Excel Worksheet Functions 1 January 24th 07 11:05 PM
Date updates from worksheet to chart & changes date to a date series! Help!! Jayjg Charts and Charting in Excel 2 January 22nd 05 03:00 PM


All times are GMT +1. The time now is 05:20 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"