+ Reply to Thread
Results 1 to 2 of 2

how to delete dublicates rom selected column

  1. #1
    Registered User
    Join Date
    09-06-2012
    Location
    Kaiserslautern,Germany
    MS-Off Ver
    2007
    Posts
    19

    how to delete dublicates rom selected column

    Hello,

    I am sorry if my question is too easy, but it is my third day with vba and the job needs to be done..

    I have a column and i need to delete dublicates from it, each time it would be a different column.
    I know a bout the button "Del dublicates" but my macros is doing other stuff and i want to delete dublicates at the end of the procedure.

    I worked with Selection and I put output to the column next to it. Now I need to work with it. My attempt:

    ...some code before
    ' Reselecting the range
    Selection.Offset(0, 1).Select
    ' Checking for dublicates in the column
    ActiveSheet.Selection.RemoveDuplicates Columns:=1, Header:=xlNo Doesn't work


    Thank you for ur help!
    Katya

  2. #2
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: how to delete dublicates rom selected column

    try this, it deletes the duplicates from column f, please change for yr needs!
    Please Login or Register  to view this content.
    Regards, John55
    If you have issues with Code I've provided, I appreciate your feedback.
    In the event Code provided resolves your issue, please mark your Thread as SOLVED.
    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

    ...enjoy -funny parrots-

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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