Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / May 2006

Tip: Looking for answers? Try searching our database.

column format

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
snowing - 31 May 2006 20:14 GMT
Hey,

I have a macro that does a bunch of stuff, but before it does that
stuff I want it to format a column which holds a date value, I want it
to format the columns cells so that the date format is m/d/yyyy h:mm
Does any one know how I would go about this?

Signature

snowing

Matt Lunn - 31 May 2006 20:29 GMT
> Hey,
>
> I have a macro that does a bunch of stuff, but before it does that
> stuff I want it to format a column which holds a date value, I want it
> to format the columns cells so that the date format is m/d/yyyy h:mm
> Does any one know how I would go about this?

If the macro only refers to one worksheet. Use the macro recorder and record
the formatting you apply to the column. Copy the code it creates into your
main macro. If the macro jumps from sheet to sheet you may need to modify
this code accordingly.

HTH
Die_Another_Day - 31 May 2006 21:11 GMT
> Hey,
>
[quoted text clipped - 8 lines]
> snowing's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=34576
> View this thread: http://www.excelforum.com/showthread.php?threadid=547201

Columns("A").numberformat = "m/d/yyyy h:mm"

HTH

Die_Another_Day
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.