Consulting

Results 1 to 13 of 13

Thread: Inserting Time in a cell

  1. #1
    Moderator VBAX Master austenr's Avatar
    Joined
    Sep 2004
    Location
    Maine
    Posts
    2,033
    Location

    Inserting Time in a cell

    I know that there is a pop up calendar, but is there a way for a user to pick a time to enter similar to the pop up calendar? Thanks
    Peace of mind is found in some of the strangest places.

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Guru MOS MASTER's Avatar
    Joined
    Apr 2005
    Location
    Breda, The Netherlands
    Posts
    3,281
    Location
    Hi,

    Well yes there is. You talk about a calendar control. There are several but some of them you can use as a time picker.

    DTPicker is one of them. (Microsoft Date & Time Picker control 6.0 (SP 4))
    The Ocx that you need on your machine is: mscomctl2.ocx

    You can set the custom properties so only time is shown.
    You just select that bit of time you wish to change and use the toggle button to change it.

    Included a simple sample for you.
    _________
    Groetjes,

    Joost Verdaasdonk
    M.O.S. Master

    Mark your thread solved, when it has been, by hitting the Thread Tools dropdown at the top of the thread.
    (I don't answer questions asked through E-mail or PM's)

  3. #3
    Moderator VBAX Mentor sheeeng's Avatar
    Joined
    May 2005
    Location
    Kuala Lumpur
    Posts
    392
    Location
    Just in case you want to enter static data/time stamp without calender control...

    If you want to enter a static date stamp on a cell, press Ctrl + ;
    If you want to enter a static time stamp on a cell, press Ctrl + Shift + ;

    HTH.

  4. #4
    Administrator
    VP-Knowledge Base
    VBAX Guru MOS MASTER's Avatar
    Joined
    Apr 2005
    Location
    Breda, The Netherlands
    Posts
    3,281
    Location
    Austen,

    Did it work out with the DTPicker?
    _________
    Groetjes,

    Joost Verdaasdonk
    M.O.S. Master

    Mark your thread solved, when it has been, by hitting the Thread Tools dropdown at the top of the thread.
    (I don't answer questions asked through E-mail or PM's)

  5. #5
    Moderator VBAX Mentor sheeeng's Avatar
    Joined
    May 2005
    Location
    Kuala Lumpur
    Posts
    392
    Location
    Quote Originally Posted by MOS MASTER
    Austen,

    Did it work out with the DTPicker?
    I tried it, Joost.
    Nice code.

  6. #6
    Administrator
    VP-Knowledge Base
    VBAX Guru MOS MASTER's Avatar
    Joined
    Apr 2005
    Location
    Breda, The Netherlands
    Posts
    3,281
    Location
    Quote Originally Posted by sheeeng
    I tried it, Joost.
    Nice code.
    Glad you liked it..let's hope it solves Austens query.
    _________
    Groetjes,

    Joost Verdaasdonk
    M.O.S. Master

    Mark your thread solved, when it has been, by hitting the Thread Tools dropdown at the top of the thread.
    (I don't answer questions asked through E-mail or PM's)

  7. #7
    Moderator VBAX Master austenr's Avatar
    Joined
    Sep 2004
    Location
    Maine
    Posts
    2,033
    Location
    Yes that is what I needed. Great!! Thanks
    Peace of mind is found in some of the strangest places.

  8. #8
    Administrator
    VP-Knowledge Base
    VBAX Guru MOS MASTER's Avatar
    Joined
    Apr 2005
    Location
    Breda, The Netherlands
    Posts
    3,281
    Location
    Quote Originally Posted by austenr
    Yes that is what I needed. Great!! Thanks
    You're welcome! (don't forget to mark the thread)
    _________
    Groetjes,

    Joost Verdaasdonk
    M.O.S. Master

    Mark your thread solved, when it has been, by hitting the Thread Tools dropdown at the top of the thread.
    (I don't answer questions asked through E-mail or PM's)

  9. #9
    Moderator VBAX Mentor sheeeng's Avatar
    Joined
    May 2005
    Location
    Kuala Lumpur
    Posts
    392
    Location
    Quote Originally Posted by austenr
    Yes that is what I needed. Great!! Thanks
    Hi austenr,
    Please mark your thread solved by clicking Solved by hitting the Thread Tools dropdown at the top of the thread. (If you happy with all the help given)

  10. #10
    Quote Originally Posted by sheeeng
    Just in case you want to enter static data/time stamp without calender control...

    If you want to enter a static date stamp on a cell, press Ctrl + ;
    If you want to enter a static time stamp on a cell, press Ctrl + Shift + ;

    HTH.
    Hey, Sheeeng, maybe you typed something other than the plus sign, but on my computer I have to use the colon, not the "+" to get the date and/or time.

  11. #11
    Moderator VBAX Mentor sheeeng's Avatar
    Joined
    May 2005
    Location
    Kuala Lumpur
    Posts
    392
    Location
    Quote Originally Posted by Cyberdude
    Hey, Sheeeng, maybe you typed something other than the plus sign, but on my computer I have to use the colon, not the "+" to get the date and/or time.
    Sorry, What I mean is the "+" meaning "press together".
    Sorry for the misleading suggestions.

  12. #12
    No problem, sheeeng, I was pretty sure you didn't mean the "+", but you never know. Have a nice day!

  13. #13
    Moderator VBAX Mentor sheeeng's Avatar
    Joined
    May 2005
    Location
    Kuala Lumpur
    Posts
    392
    Location
    Quote Originally Posted by Cyberdude
    No problem, sheeeng, I was pretty sure you didn't mean the "+", but you never know. Have a nice day!
    Thank you for clarify everything....
    If not, I'll be misleading the readers of this thread....

Posting Permissions

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