+ Reply to Thread
Results 1 to 4 of 4

How to make a Macro recorded for a particular column, work for other column as well?

  1. #1
    Registered User
    Join Date
    01-05-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    16

    How to make a Macro recorded for a particular column, work for other column as well?

    Hi All,
    I have recorded a macro for the column A to remove the duplicates; and this works fine. But can someone tell me a method by which I can use this macro to remove duplicates in other columns?
    For example, if I select column X, and execute this macro, all the duplicates in column X are removed.

    The macro code:

    Please Login or Register  to view this content.
    Thank you in advance for your assistance in this matter.

    Streetcat
    Last edited by streetcat; 01-23-2012 at 02:55 AM. Reason: Compliance with the guidelines of this forum

  2. #2
    Registered User
    Join Date
    01-05-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: How to make a Macro recorded for a particular column, work for other column as we

    Strange, I have not received even a single response. I though the solution will be very simple for the excel gurs!

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: How to make a Macro recorded for a particular column, work for other column as we

    If you are going to select the column and then run the macro, you can do this -
    Please Login or Register  to view this content.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  4. #4
    Registered User
    Join Date
    01-05-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: How to make a Macro recorded for a particular column, work for other column as we

    @arlu1201 --thanks for your help. This solution works well for my problem :-)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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