Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: convert decimal input to real time vba code

  1. #11
    Board Regular
    Join Date
    Dec 2008
    Posts
    6,649
    Post Thanks / Like
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Default Re: convert decimal input to real time vba code

    Quote Originally Posted by aboly8000 View Post
    But for all time there must be a way.
    Unfortunately, there is not.

    The simple solution is to change the user, not the code. Enter all times in a consistent format and your problem is solved.

  2. #12
    Board Regular steve the fish's Avatar
    Join Date
    Oct 2009
    Location
    Midlands, UK
    Posts
    7,649
    Post Thanks / Like
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)

    Default Re: convert decimal input to real time vba code

    Quote Originally Posted by jasonb75 View Post
    The request was to convert 3.50 to 3:30, not 3.30 to 3:30.
    Oh yes i need to read
    Looking for opportunities

  3. #13
    Board Regular
    Join Date
    Sep 2019
    Posts
    58
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: convert decimal input to real time vba code

    Quote Originally Posted by jasonb75 View Post
    Unfortunately, there is not.

    The simple solution is to change the user, not the code. Enter all times in a consistent format and your problem is solved.
    Then introduce a code that accepts only time as input(Error message for decimal and text input(

  4. #14
    Board Regular
    Join Date
    Dec 2008
    Posts
    6,649
    Post Thanks / Like
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Default Re: convert decimal input to real time vba code

    Times are decimals, so that is not possible either.

    12:00 = 0.5 days, 3.5 days = 84:00 hours, there is no way to identify which was entered.

  5. #15
    Board Regular
    Join Date
    Sep 2019
    Posts
    58
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: convert decimal input to real time vba code

    Quote Originally Posted by jasonb75 View Post
    Times are decimals, so that is not possible either.

    12:00 = 0.5 days, 3.5 days = 84:00 hours, there is no way to identify which was entered.
    Is it possible to identify the entry format?

  6. #16
    Board Regular
    Join Date
    Dec 2008
    Posts
    6,649
    Post Thanks / Like
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Default Re: convert decimal input to real time vba code

    Quote Originally Posted by aboly8000 View Post
    Is it possible to identify the entry format?
    Please read my last replay again!

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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