Results 1 to 14 of 14

Check cell format is Date or Time

Threaded View

  1. #1
    Registered User
    Join Date
    02-01-2017
    Location
    Lisboa
    MS-Off Ver
    2010
    Posts
    81

    Check cell format is Date or Time

    Hello,

    I am not an expert in VBA and I would appreciate some help with a problem I am trying to solve.

    I have a table where I have information of various products (A1:C14). I would like to insert a VBA code to automatically check if the information inserted in column B has the Date format (dd-mm-yyyy) and if the information inserted in column C has the Time format (hh:mm:ss), if the format is not the same the cell's fill colour should change to red.

    I adapted a code from the net, but the result is not the ideal, the blank cells also change the background to red.

    Any suggestions would be greatly appreciated

    Thank you in advanced.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Converting Unusable Time / Date Format To Usable Time / Date Format
    By Gtrtim112 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-05-2019, 11:25 AM
  2. check for date in mixed text/date and format cell.. Help!
    By berbchid in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-24-2013, 03:42 AM
  3. Replies: 4
    Last Post: 07-22-2013, 03:43 AM
  4. modify date time cell to an excel format date time
    By rileyp in forum Excel General
    Replies: 12
    Last Post: 03-24-2013, 08:39 PM
  5. Userform to check Date/Time format correct before copying to worksheet
    By LoneWolf3574 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-16-2013, 05:14 AM
  6. Replies: 1
    Last Post: 11-01-2012, 10:37 AM
  7. [SOLVED] Check IF a cell is a certain DATE format?
    By biddum in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-31-2012, 04:18 AM

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