+ Reply to Thread
Results 1 to 2 of 2

Time Entry

  1. #1
    Iladki
    Guest

    Time Entry

    A simple problem I would appreciate your help with.

    I have a work sheet with several cells where time is to be entered in the
    format hh:mm. Unfortunately a lot of users are enetering it in the format
    hh.mm.
    Is there any way I can automatically convert to the right format, or not
    accept the (.) but only (.

    Thanks for your help.



  2. #2
    Forum Contributor
    Join Date
    06-10-2004
    Location
    India
    Posts
    1,066
    Private Sub Worksheet_Change(ByVal Target As Range)

    If InStr(1, Target.Text, ":", vbTextCompare) < 1 Then
    MsgBox "invalid entry"
    End If

    End Sub


    Enter the above code in the sheets module



    Mangesh

+ 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