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 8680949
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T21:22:47+00:00 2026-06-12T21:22:47+00:00

I want to filter a range (9 columns and 1400 rows) by values in

  • 0

I want to filter a range (9 columns and 1400 rows) by values in a column (rng01)

Application.ScreenUpdating = False
db.Rows.Hidden = False
For Each cell In rng01.Cells
If Not cell.Value = "323" Then
cell.EntireRow.Hidden = True
End If
Next cell
Application.ScreenUpdating = True

This works, but takes about 3-4 seconds.
Is there a faster way, pls ?

  • 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-06-12T21:22:48+00:00Added an answer on June 12, 2026 at 9:22 pm

    Lets see if I understand your question: rng01 is one of the nine columns, you want to filter so that only rows where the value in rng01 = 323 are visible.

    You can use AutoFilter for this. You will need a header row above your data (but it can be blank).

    rng01.AutoFilter
    rng01.AutoFilter Field:=1, Criteria1:="323", VisibleDropDown:=False
    

    If the sheet rng01 referes to already has an active AutoFilter, the first rng01.AutoFilter clears it.

    Note that rng01 is one column wide.

    If in fact rng01 referes to a range wider than one column, use

    rng01.Columns(3).AutoFilter
    rng01.Columns(3).AutoFilter Field:=1, Criteria1:="323", VisibleDropDown:=False
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to filter rows from a data.frame based on a logical condition. Let's
I want to filter a property within a range, but items that does not
I have a table with multiple columns and i want to filter the table
I want to filter a datatable with a price range. I want to remove
What I want to do is, I want to filter a range by an
I want to filter my model object using two filters. So, it can be
I want to filter a java.util.Collection based on a predicate.
I want to filter repeated elements in my list for instance foo = ['a','b','c','a','b','d','a','d']
I want to filter e-mail headers received on my Postfix mail receiving server. I
I want to filter some reserved word on my title form. $adtitle = sanitize($_POST['title']);

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.