Consulting

Results 1 to 3 of 3

Thread: Solved: Help Required - Checking formats of cells

  1. #1

    Question Solved: Help Required - Checking formats of cells

    Hi,

    I have a spreadsheet which is filled by different people, due to which some of them fill -
    • Character values into cells which should contain only numeric values or
    • Fill the wrong date format (instead of dd/mm/yyyy they fill mmm-yy or mm/dd/yyyy)

    Is there any way by which I can prevent them from doing this? I guess we can use Worksheet_Change event - but how?

    I am just a beginner with VBA, would really appreciate your help guys.

    Kindest Regards.
    Ankit

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Use data validation, that has a number of different options to test input.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    thanks...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •