Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Date Formatting in a Macro

I have been trying to create a date macro in which I input the date on
the first sheet and it then continues onto the other sheets, I have
been parcially sucessful but I would like the Date to appear in this
format dddd, mmmm dd, yyyy ( Sunday, January 1, 2006) but all I get is
a bunch of pound signs in the excel sheets.

Does anbody have any idea on how to fix this or have a better way of
getting it to do this
and then for some other reason I can't get it to auto run when I open
the workbook.

Hope some one can help

Thanks

Greg A

  #2   Report Post  
Posted to microsoft.public.excel.misc
bgeier
 
Posts: n/a
Default Date Formatting in a Macro


How are you putting the date in the cell?
If the date is a result of a formula, is it negative? Negative dates
show up as #'s
Have you tried to autofit the columns?


--
bgeier
------------------------------------------------------------------------
bgeier's Profile: http://www.excelforum.com/member.php...o&userid=12822
View this thread: http://www.excelforum.com/showthread...hreadid=543580

  #3   Report Post  
Posted to microsoft.public.excel.misc
CLR
 
Posts: n/a
Default Date Formatting in a Macro

Hold down Ctrl key and left click each SheetTab you wish included. Then
just format and enter the date in one cell on one sheet and it will copy
over to the same cell in each sheet.........

Vaya con Dios,
Chuck, CABGx3


wrote in message
ps.com...
I have been trying to create a date macro in which I input the date on
the first sheet and it then continues onto the other sheets, I have
been parcially sucessful but I would like the Date to appear in this
format dddd, mmmm dd, yyyy ( Sunday, January 1, 2006) but all I get is
a bunch of pound signs in the excel sheets.

Does anbody have any idea on how to fix this or have a better way of
getting it to do this
and then for some other reason I can't get it to auto run when I open
the workbook.

Hope some one can help

Thanks

Greg A



  #4   Report Post  
Posted to microsoft.public.excel.misc
JMB
 
Posts: n/a
Default Date Formatting in a Macro

Selection.NumberFormat = "dddd, mmmm, dd, yyyy"

make sure the column is wide enough to display the data, or you will get
####. Or, use Autofit

Selection.Columns.AutoFit


" wrote:

I have been trying to create a date macro in which I input the date on
the first sheet and it then continues onto the other sheets, I have
been parcially sucessful but I would like the Date to appear in this
format dddd, mmmm dd, yyyy ( Sunday, January 1, 2006) but all I get is
a bunch of pound signs in the excel sheets.

Does anbody have any idea on how to fix this or have a better way of
getting it to do this
and then for some other reason I can't get it to auto run when I open
the workbook.

Hope some one can help

Thanks

Greg A


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
Excel Macro save as date of last friday [email protected] Excel Discussion (Misc queries) 4 May 17th 06 10:52 PM
Macro not formatting correctly js8373 Excel Discussion (Misc queries) 0 February 28th 06 07:53 PM
formatting date-time values in macro scw-tzg Excel Worksheet Functions 2 November 14th 05 09:21 PM
NETWORKDAYS - Multiple Date Selection Annabelle Excel Discussion (Misc queries) 3 October 4th 05 07:04 PM
Conditional Formatting Based on Date John F.M. Excel Discussion (Misc queries) 1 June 2nd 05 08:14 PM


All times are GMT +1. The time now is 12:47 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"