ExcelVba Help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • roxcy
    New Member
    • Jun 2006
    • 3

    #1

    ExcelVba Help

    Hi, Could anyone help me how to eliminate duplicate values in excel sheet using vba.For eg i have 5 columns and 5 rows in my excel sheet.

    A B C D E
    PRONO IDNO ID TYPE NAME ADDRESS
    1 123 a A1 Manhattan
    2 111 b E00 Lousia
    3 222 c E25 Stangera
    4 333 d A1 Alishabab
    5 444 e E00 kimnasis

    I would like to eliminate only duplicates from the 4th column.How should i do that?
    Plz.........Hel p me!!!!!!!
  • sashi
    Recognized Expert Top Contributor
    • Jun 2006
    • 1749

    #2
    Hi Roxcy,

    well.. to eliminate duplicate or redundancy we use the DISTINCT keyword with SELECT statement.. i.e.

    "SELECT DISTINCT [nVehicleRegNo] FROM tblVehicleRegLi st;"

    well.. since use dealing with xls.. try out the link below.. good luck my fren..

    Last edited by sashi; Jun 28 '06, 01:54 AM.

    Comment

    • roxcy
      New Member
      • Jun 2006
      • 3

      #3
      Thnks..

      Thnks sashi,
      it really worked for me.......Thanks ...

      Comment

      • sashi
        Recognized Expert Top Contributor
        • Jun 2006
        • 1749

        #4
        no prob.. anytime buddy..

        Comment

        Working...