• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

data validation error

ushaanu

Member
hi all,

I have one excel sheet I need one particular cell like A2 when some one enter email address and by typing mistake not mentioning @ sing so cell not allowed to proceed further and gives error .

thanks
Anu
 
Hi,
PFA
For your Query am Trying. Instead of this I have used Conditional formatting for not containing "@" means it will highlight.
Let me know if you have any clarfication
 

Attachments

  • Using Conditional Format.xlsx
    9.3 KB · Views: 4
images
 
Oops forgot to put the start number it should be =SEARCH("@",A1,1)<>0, it will work fine now
hi Nebu

I need one more thing in one cell if I am type in lower or upper case automatically word change in to proper case.

thanks
Any
 
Hi Anu,
Good day...

Not sure it is possible in DV.
But this macro can do what you want:

Code:
Sub lower_case()
    Dim Rng As Range
    Dim c As Range
    Set Rng = ActiveSheet.Range("A1:A20")
    For Each c In Rng
        c.Value = WorksheetFunction.Proper(c.Value)
    Next c
End Sub

Regards,
 
Back
Top