VBA - Deduplicate a column without exact references

rachel06

Board Regular
Joined
Feb 3, 2016
Messages
126
Office Version
  1. 365
Platform
  1. Windows
Hi!

This is probably another easy one, but again, nothing I'm searching for is helping.

I want to remove duplicates from a column but I don't want it to have exact cell references. It's going to be a different number of rows for each dataset each time.

Everything I've tried either slows the macro way down, completely crashes excel, or crashes the macro.

This little bit is part of a larger code. My data starts in cell E1:

Code:
Columns("E:E").Select
    ActiveSheet.Range("$E$2:$E$28605").RemoveDuplicates Columns:=1, Header:=xlNo

I know this is super simple and super basic and I feel so silly that I can't figure it out. Hoping there's an easy fix to update!
 
I made the edit right after you copied me to point it out.
My mistake. I was looking at post 7, and mistook the "quote" there as your updated "code"!
I didn't see that you had updated the original post.
 
Upvote 0

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Forum statistics

Threads
1,223,883
Messages
6,175,168
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top