+ Reply to Thread
Results 1 to 2 of 2

Need help with time check and colon conversion

Hybrid View

  1. #1
    Registered User
    Join Date
    04-28-2004
    Posts
    49

    Need help with time check and colon conversion

    Hi, I have a spreadsheet(database) that I use to import data to. I import the data in a row at the top of my list, so as new data comes in, the time fields are always in cells d2,e2,f2,g2. The users who enter the data on the other sheets i import them from enter the time in 1 of 3 formats:
    1)Standard AM/PM time with colons
    2)Military time with colons
    3)Military time without colons

    So when I import the data my coloumns are formatted for AM/PM time, but if the data is in format 3, all I get is 12:00 as the imported time. All other formats, my database is fine with.

    When I import the data it is done from a VBA Macro so I would like to add a bit of code to that same macro that will first check the cells being imported for format and if and only if it is in format 3, I want it to add the colon. It does not have to convert it to military time as my database uses the AM/PM format.

    Thanks for reading, any help is greatly appreciated.

  2. #2
    Registered User
    Join Date
    04-28-2004
    Posts
    49
    Can anyone help me with this?

+ 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