Consulting

Results 1 to 2 of 2

Thread: Remove duplicated rows with VBA

  1. #1
    VBAX Newbie
    Joined
    May 2021
    Posts
    1
    Location

    Unhappy Remove duplicated rows with VBA

    Hi Guys,

    I'm new to this forum and I'm trying to accelerate on VBA after start learning it. May I kindly ask some help? Anybody had any suggestions how to remove duplicated rows with VBA i.e. related coding

    Thank you in advance!

    Gergely

  2. #2
    VBAX Mentor
    Joined
    Nov 2020
    Location
    Cochin, Kerala
    Posts
    314
    Location
    Hi,
    Why do you need VBA to do this?
    It is already there under Data > Remove Duplicates, and then Under Columns, check or uncheck the columns where you want to remove the duplicates
    A sample code to remove duplicates comparing multiple columns
    Sub RemoveDups_MultColumns()
    ActiveSheet.UsedRange.RemoveDuplicates Columns:=Array(1, 2) , Header:=xlYes
    End Sub

Posting Permissions

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