Hi Everyone, I am just checking a Cell with
If Selection.Cells(x, 8) <> _ "AD" Or "AE" Or "AF" Or "AG" Or "AI" Or "AL" Or "AM" Or "AN" Or "AO" Or "AQ" Or "AR" Or "AS" Or "AT" Or "AU" Or _ "AW" Or "AX" Or "AZ" Or "BA" Or "BB" Or "BD" Or "BE" Or "BF" Or "BG" Or "BH" Or "BI" Or "BJ" Or "BM" Or "BN" Or _ "BO" Or "BR" Or "BS" Or "BT" Or "BV" Or "BW" Or "BY" Or "BZ" Or "CA" Or "CC" Or "CD" Or "CF" Or "CG" Or "CH" Or _ "CI" Or "CK" Or "CL" Or "CM" Or "CN" Or "CO" Or "CR" Or "CS" Or "CU" Or "CV" Or "CX" Or "CY" Or "CZ" Or "DE" Or _ "DJ" Or "DK" Or "DM" Or "DO" Or "DZ" Or "EC" Or "EE" Or "EG" Or "EH" Or "ER" Or "ES" Or "ET" Or "FI" Or "FJ" Or _ "FK" Or "FM" Or "FO" Or "FR" Or "GA" Or "GB" Or "GD" Or "GE" Or "GF" Or "GG" Or "GH" Or "GI" Or "GL" Or "GM" Or _ "WS" Or "YE" Or "YT" Or "ZA" Or "ZM" Or "ZW" Then MsgBox "Account Name cannot be empty! " & "Place: Row: " & x & " Column: 8" GoTo Einde End If If i run the Macro i got the run time Error! Anyone has any idea? Thanks --~--~---------~--~----~------------~-------~--~----~ ------------------------------------------------------------------------------------- Some important links for excel users: 1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at http://www.excelitems.com 2. Excel tutorials at http://www.excel-macros.blogspot.com 3. Learn VBA Macros at http://www.vbamacros.blogspot.com 4. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com If you find any spam message in the group, please send an email to: Ayush Jain @ jainayus...@gmail.com or Ashish Jain @ 26may.1...@gmail.com ------------------------------------------------------------------------------------- -~----------~----~----~----~------~----~------~--~---