+ Reply to Thread
Results 1 to 10 of 10

Time [type mismatch]

  1. #1
    Registered User
    Join Date
    09-27-2012
    Location
    Peoria,Il USA
    MS-Off Ver
    Excel 2007
    Posts
    31

    Time [type mismatch]

    Trying to subtract the end time from the start time and display it in an empty cell that I provided early on. I would like the number displayed in number of hours IE 1.5 Hours. but if not possible I can manage with 1:30 hours.

    With the code below I get
    rune time error 13
    type mismatch

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    09-27-2012
    Location
    Peoria,Il USA
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Time [type mismatch]

    Any help would be appreciated

  3. #3
    Registered User
    Join Date
    09-27-2012
    Location
    Peoria,Il USA
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Time [type mismatch]

    Here is a copy of my workbook.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    09-27-2012
    Location
    Peoria,Il USA
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Time [type mismatch]

    Is there a way to make the txt format time. that seems to be the issue. but I cant seem to format the cells
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-27-2012
    Location
    Peoria,Il USA
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Time [type mismatch]

    Still cant find a format that will work. Any sugestions?

  6. #6
    Registered User
    Join Date
    09-27-2012
    Location
    Peoria,Il USA
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Time [type mismatch]

    With the cells them self:
    1. are formatted to time hh:MM;@
    2. inputs in column 1,2 are entered in time format
    then in cell 3 (formatted as time of course) can =cell 1- cell 2
    and it will give in time how many hours .

  7. #7
    Registered User
    Join Date
    09-27-2012
    Location
    Peoria,Il USA
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Time [type mismatch]

    So now i need to copy the value from one sheet to another.
    Sheet 1 called display (where the data is going)
    and sheet 2 called DataBase

  8. #8
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Time [type mismatch]

    Hello Neisany,

    Your WorkBook kept me busy for a very long time. You may have very good reasons why you are doing things the way in which you have it set up, but it could be simplified a lot without encountering problems with Date entries via a TextBox in the UserForm.

    If you could get a user to enter a time or date directly into a cell on the spreadsheet, you could ensure the correct data entry with Data Validation. With TextBoxes on a UserForm I'm afraid, that is not possible without very lengthy Code.

    But, I have done my best to acommodate you, (with my poor knowledge of VBA), in every way possible and I trust that you may find the attached WorkBook a little more co-operative.

    Please keep in mind that time entries in the TextBoxes on the UserForm, must be entered in the correct format, i.e. 4:30 and not 4.3, or 4,3 or 4-3, etc.

    May you enjoy great success with your project.

    Also see the "Please consider" note at the bottom of this post.
    Attached Files Attached Files
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  9. #9
    Registered User
    Join Date
    09-27-2012
    Location
    Peoria,Il USA
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Time [type mismatch]

    Thanks for the work that you did. I looked threw it and it is fantastic. Although I have found another way of doing what I want. although I think I can use your changes on other projects. Thanks again so much


    ~*****~

  10. #10
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Time [type mismatch]

    You are welcome,

    Thank you for the Rep.

+ 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