Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
SF SF is offline
external usenet poster
 
Posts: 4
Default How to change to time format?

How do I change a range of cell to time format (eg 17:30PM) through code?

SF


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default How to change to time format?

Selection.Numberformat = "h:mm AM/PM"

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"SF" wrote in message
...
How do I change a range of cell to time format (eg 17:30PM) through code?

SF




  #3   Report Post  
Posted to microsoft.public.excel.programming
SF SF is offline
external usenet poster
 
Posts: 4
Default How to change to time format?

Thank!

SF

"Bob Phillips" wrote in message
...
Selection.Numberformat = "h:mm AM/PM"

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"SF" wrote in message
...
How do I change a range of cell to time format (eg 17:30PM) through code?

SF






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
Macro to change time format.... neilcarden Excel Worksheet Functions 1 January 8th 08 02:53 PM
Can we change the format for pre set footers like date, time etc. Pavan Excel Discussion (Misc queries) 0 November 7th 07 05:50 AM
change text format to time Hans Excel Worksheet Functions 3 October 18th 07 01:26 PM
Change time format from :0 to 0:0 Donald B[_2_] Excel Worksheet Functions 4 July 6th 07 03:53 AM
change format for time value Qaspec Excel Discussion (Misc queries) 1 May 23rd 05 10:25 PM


All times are GMT +1. The time now is 04:54 PM.

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

About Us

"It's about Microsoft Excel"