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

  • Home
  • SEARCH
  • 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 8740803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:11:45+00:00 2026-06-13T11:11:45+00:00

Is there there any code in Excel 2010 VBA that I can use to

  • 0

Is there there any code in Excel 2010 VBA that I can use to hide row n (e.g. row 200) to the maximum row?

Btw the name of the sheet in particular is main.

  • 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-13T11:11:46+00:00Added an answer on June 13, 2026 at 11:11 am

    Updated comment: To be clear I interpreted this question as hiding from row 200 to the used row with data (if that last used row exceeded 200)

    Something like this

    code

    Sub HideEm()
        Dim rng1 As Range
        Set rng1 = ActiveSheet.Cells.Find("*", [a1], xlValues, , , xlPrevious)
        If Not rng1 Is Nothing Then
            If rng1.Row > 200 Then Rows("200:" & rng1.Row).Hidden = True
        End If
    End Sub
    

    to work on a specific sheet

    Sub HideEm()
    Dim ws As Worksheet
    Dim rng1 As Range
    Set ws = Sheets("main")
    Set rng1 = ws.Cells.Find("*", ws.[a1], xlValues, , , xlPrevious)
    If Not rng1 Is Nothing Then
        If rng1.Row > 200 Then ws.Rows("200:" & rng1.Row).Hidden = True
    End If
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any tool or code that would enable me to Display Excel 2003
Is there any program code that can help me to pop up the virtual
Is there any codeplex license that allows some one to use my code any
Is there any need for code with author's name added in every function or
Is there any maximum size for code in Java? I wrote a function with
I have VBA code that I wrote that creates an Excel Column Cluster chart
Is there any api for executing a macro code on an excel? I don't
I have a vba function in excel 2010 that I built using help from
Is there any code or custom options available to achieve the following : 1>
Is there any code example teaching how to zoom in and out in a

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.