Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Good day,
I am looking for the VBA code that, when run, will place the current date in B2 using this format: DD MonthName YYYY For example: Todays date would read 25 November 2008. If this format is difficult to achieve, using a standard DD/MM/YYYY format could work. Your assistance is appreciated. Thanks. Cordially, |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I'd like to include with this the possibility of using an Input Box to
request the user to enter the date, and then place the date in B2 with the format mentioned. Any suggestions? Thanks. "Brent E" wrote: Good day, I am looking for the VBA code that, when run, will place the current date in B2 using this format: DD MonthName YYYY For example: Todays date would read 25 November 2008. If this format is difficult to achieve, using a standard DD/MM/YYYY format could work. Your assistance is appreciated. Thanks. Cordially, |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
Maybe this Sub GetDate() response = InputBox("Please enter date", "Date Entry", Format(Date, "dd mmmm yyyy")) With Sheets("Sheet1").Range("B2") .Value = response .NumberFormat = "dd mmmm yyyy" End With End Sub Mike "Brent E" wrote: I'd like to include with this the possibility of using an Input Box to request the user to enter the date, and then place the date in B2 with the format mentioned. Any suggestions? Thanks. "Brent E" wrote: Good day, I am looking for the VBA code that, when run, will place the current date in B2 using this format: DD MonthName YYYY For example: Todays date would read 25 November 2008. If this format is difficult to achieve, using a standard DD/MM/YYYY format could work. Your assistance is appreciated. Thanks. Cordially, |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks Guys. Both of those will be great solutions. Thanks for the assistance.
|
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
One way is to input this formula in B2: =TODAY()
Then format B2 as follows: right-click on it, select Format Cells, in Number tab select Custom, in Type box input "dd mmmm yyyy" (without quotes) and press Enter. Thereafter B2 would always have today's date in that format. No need for VBA. "Brent E" wrote: Good day, I am looking for the VBA code that, when run, will place the current date in B2 using this format: DD MonthName YYYY For example: Todays date would read 25 November 2008. If this format is difficult to achieve, using a standard DD/MM/YYYY format could work. Your assistance is appreciated. Thanks. Cordially, |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
conditional formatting for cell date to equal today's date | Excel Worksheet Functions | |||
How input today's date and keep that date | Excel Worksheet Functions | |||
I need today's date returned as date format in formula | Excel Discussion (Misc queries) | |||
Count number of cells with date <today's date | New Users to Excel | |||
count the number of cells with a date <= today's date | New Users to Excel |