+ Reply to Thread
Results 1 to 2 of 2

Time in Userform -> textbox

  1. #1
    Registered User
    Join Date
    05-04-2007
    Location
    Denmark
    MS-Off Ver
    2007
    Posts
    9

    Time in Userform -> textbox

    Hi there

    I have a userform that have a textbox, where I want to write the time format "TT:MM" . I know that a textbox is "dumb", but can It be made ?
    then after the time tranfer it to a sheet called "data"

    Please help

    The Iceman
    Last edited by dk-iceman; 03-09-2008 at 01:51 AM.

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    As you said a textbox is dumb, but you can add code so that it looks like it is smart.

    You can use a TextBox1_Change macro to test what characters have been entered into the text box and make sure they follow a set format.

    You can use a TextBox1_BeforeUpdate or TextBox1_AfterUpdate to check the entry is reconised as a time type entry


    You can certainly have code that will add the details of the textbox to a sheet
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

+ 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