Consulting

Results 1 to 3 of 3

Thread: Clean the Cells if cell does not start with (

  1. #1
    VBAX Mentor
    Joined
    Feb 2012
    Posts
    406
    Location

    Exclamation Clean the Cells if cell does not start with (

    I need a VBA code that check columns B to AX and if the cell is not started with ( clean the cell .
    Really it will be very big help for me .
    Thank you

  2. #2
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    This should give you some ideas
    For each Cel in Range("B:AX")
    If not Left(Cel.Text, 1) = "(" Then Cel.ClearContents
    Next
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  3. #3
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,064
    Location
    Quote Originally Posted by SamT View Post
    This should give you some ideas
    yes...... But it doesn't help me find the right fish
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

Posting Permissions

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