Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7524129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T03:00:07+00:00 2026-05-30T03:00:07+00:00

Is there a function or such thing in VBA to find distinct values in

  • 0

Is there a function or such thing in VBA to find distinct values in a range ?

Otherwise i guess I’ll just write a Sub using a Collection, but that sounds a little overkill. I am never a big fan of browsing cells in a range. That seems to get things slower.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T03:00:09+00:00Added an answer on May 30, 2026 at 3:00 am

    The way I’ve done this in the past is to use a worksheet to manipulate the data using the in-built functionality of Excel (rather than VBA specifically).

    Record a macro whilst selecting a list of values in a worksheet column, then use the Advanced Filter functionality to ‘Copy to Another Location’ whilst the ‘Unique records only’ checkbox is checked.

    This will give you a unique list in the destination column, from which you can read the values in VBA and continue what you were doing.

    Don’t forget to edit out the ‘fluff’ that recording a macro will inevitably write in for you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any dedicated function for converting the binary values to decimal values. such
I was wondering if there's such thing as the equivalent as a callback function
is there any way to hook a debug function into a hook such as
Is there any persistence solution for Common Lisp, such as Elephant, that allows function
does anyone know if there a vba style compiler/gui for python. i am using
First off, I realize that there is no such thing as a perfectly secure
PHP provides associative arrays but there is no such thing in classical asp. I
Is there a way to do such thing in a makefile for gmake: GOALS
I was wondering if there was such thing as 'belongs to' relationship, and what
Is there such a thing as a manager design pattern that controls how different

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.