#1   Report Post  
Posted to microsoft.public.excel.misc
Aaron
 
Posts: n/a
Default Date Format question

Hello all,

I have the following code but I want the date format to be YYYYMMDD with no
dashes or backslashes. Could you please help.

Range("F2").Select
ActiveCell.FormulaR1C1 = "=TODAY()"

Thanks,
Aaron
  #2   Report Post  
Posted to microsoft.public.excel.misc
Toppers
 
Posts: n/a
Default Date Format question

format cell == CUSTOM == YYYYMMDD

"Aaron" wrote:

Hello all,

I have the following code but I want the date format to be YYYYMMDD with no
dashes or backslashes. Could you please help.

Range("F2").Select
ActiveCell.FormulaR1C1 = "=TODAY()"

Thanks,
Aaron

  #3   Report Post  
Posted to microsoft.public.excel.misc
Stefi
 
Posts: n/a
Default Date Format question

Insert this line:
ActiveCell.NumberFormat="yyyymmdd"

Regards,
Stefi



€˛Aaron€¯ ezt Ć*rta:

Hello all,

I have the following code but I want the date format to be YYYYMMDD with no
dashes or backslashes. Could you please help.

Range("F2").Select
ActiveCell.FormulaR1C1 = "=TODAY()"

Thanks,
Aaron

  #4   Report Post  
Posted to microsoft.public.excel.misc
Aaron
 
Posts: n/a
Default Date Format question

This is prefect! Thank you!

"Stefi" wrote:

Insert this line:
ActiveCell.NumberFormat="yyyymmdd"

Regards,
Stefi



€˛Aaron€¯ ezt Ć*rta:

Hello all,

I have the following code but I want the date format to be YYYYMMDD with no
dashes or backslashes. Could you please help.

Range("F2").Select
ActiveCell.FormulaR1C1 = "=TODAY()"

Thanks,
Aaron

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
Cell date format doesnt change Jon Excel Worksheet Functions 5 March 7th 06 04:52 PM
Enforcing a date format on a cell/column ProdigalShawne Excel Discussion (Misc queries) 1 February 22nd 06 07:13 PM
Changing date format in a footer Gord Dibben Excel Discussion (Misc queries) 2 December 9th 05 06:36 PM
DATE Format Venkat Excel Worksheet Functions 1 August 16th 05 12:23 AM
Date Format Question Josh O. Excel Discussion (Misc queries) 1 February 10th 05 09:45 PM


All times are GMT +1. The time now is 10:35 PM.

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"