+ Reply to Thread
Results 1 to 2 of 2

check data in column

  1. #1
    Registered User
    Join Date
    09-16-2008
    Location
    malaysia
    Posts
    89

    check data in column

    i am facing a problem here. how to check some data in column "a",
    For example,
    Below are the data in my column "a"

    Column "a"
    com a
    compl funct
    sys func
    sys completed
    completed trace
    func compl2
    func com
    sys trace
    trace funct
    trace compl

    so i want to delete the row which column "a" hv come out a word "com"
    so below is my coding,


    Please Login or Register  to view this content.
    so how to check the data if the "com" word come out in column "a"?
    below is the result i want,


    Column "a"
    com a -to be delete
    compl funct -to be delete
    sys func
    sys completed -to be delete
    completed trace -to be delete
    func compl2 -to be delete
    func com -to be delete
    sys trace
    trace funct
    trace compl -to be delete

    if for the sql the coding can write as below,

    If Cells(z, "a").Value like "%com%" Then

    but for the marco, can some1 please assist me?
    thanks.
    Last edited by rylo; 09-18-2008 at 11:29 PM. Reason: wrapped code

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Can you please review the forum rules about wrapping code. I've edited your post for you to wrap the code this time.

    Try this.

    Please Login or Register  to view this content.
    rylo

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Move data daily into new column
    By rbuthello in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 05-27-2008, 08:29 AM
  2. Freezing old data in excel
    By sapphire in forum Excel General
    Replies: 6
    Last Post: 05-26-2008, 05:40 PM
  3. Formula to find most recent column of data
    By cm_027 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-07-2007, 08:59 AM
  4. Replies: 20
    Last Post: 04-04-2007, 05:36 PM
  5. How to retrieve data in right column of data?
    By tscott in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 09-21-2006, 05:07 PM

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