+ Reply to Thread
Results 1 to 6 of 6

VBA to convert 12 hour to 24 hour time

  1. #1
    Registered User
    Join Date
    05-17-2005
    Posts
    1

    VBA to convert 12 hour to 24 hour time

    I've got a large spreadsheet that displays time in " 0130P" format and need to convert that to military time so that it reads "13:30". Is there and easy way or programming function to call this?

    Thanks!!!

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    You can use a formula in a blank cell to display the time as required or you can use a macro to change value of the cell to what you require it to show.

    Please reply with which option you would prefer to use

  3. #3
    Registered User
    Join Date
    07-19-2011
    Location
    India
    MS-Off Ver
    Excel 97,2003,2007,2010
    Posts
    4

    Re: VBA to convert 12 hour to 24 hour time

    I would like both. can you give me the solution immediately...

  4. #4
    Registered User
    Join Date
    07-29-2012
    Location
    minnesota, usa
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: VBA to convert 12 hour to 24 hour time

    I have same problem as krrattner.
    VBA to convert 12 hour to 24 hour time
    I've got a large spreadsheet that displays time in " 0130P" format and need to convert that to military time so that it reads "13:30". Is there and easy way or programming function to call this?

    Thanks!!!
    Roamer

  5. #5
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: VBA to convert 12 hour to 24 hour time

    @roamer,

    Welcome to the Forum, unfortunately:

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.
    Ben Van Johnson

  6. #6
    Registered User
    Join Date
    07-29-2012
    Location
    minnesota, usa
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: VBA to convert 12 hour to 24 hour time

    ooops sorry

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1