+ Reply to Thread
Results 1 to 2 of 2

type mismatch with dates

  1. #1
    Registered User
    Join Date
    06-04-2011
    Location
    India
    MS-Off Ver
    Excel 2011 mac
    Posts
    1

    type mismatch with dates

    Using dates in this project of mine is whats driving me mad. There seem to be 2 problems.
    Problem 1 - When the active cell is a blank coloured cell eg D4, and the Add Details button is pressed, it should display a userform with the Check in date defaulted to the date at the top of the active cell column, in this case D3. But when we get the value of the cell in the vba code, it gives me an automation error

    Problem 2 - When the active cell is a coloured cell with data in it eg E5, and the Add Details button is pressed, it should display a userform with all the text boxes defaulted to the values that it finds when it does a search for the booking ID in the Booking Details work sheet. When these are updated it should save them back to the Booking Details worksheet. What happens at the moment is that it gives me a type mismatch with the check in and out dates and I cant figure out why

    If anyone can offer any help I would really appreciate it.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    04-21-2007
    Location
    Lima, Peru
    MS-Off Ver
    2000, 2007, 2010
    Posts
    674

    Re: type mismatch with dates

    Hi

    I do not have Excel for Mac but on excel 2007 for windows your code evaluates correctly and if the cell is blank gives a message box with the cell address and then two message boxes with the date. If the cell contains data the form loads correctly with data in the relevant places.

    Regards

    Jeff

+ 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