How to Set Limit for Visible Area in Excel (3 Ways)

When we have a very large datasheet, sometimes we need to set the limit for visible areas in Excel. Restricting rows and columns manually may take some extra time for you. But using shortcuts and VBA macros for this purpose can really help save some of your time. In this article, you will learn how to set a limit for visible area in Excel.


Download Practice Workbook

Download this practice workbook to exercise while you are reading this article.


3 Suitable Ways to Set Limit for Visible Area in Excel

Consider the following dataset. Let’s use this dataset to demonstrate what actions to take when a limit is set for visible areas. We will use the Hide & Unhide command, Properties Window command, and VBA code as well as set the limit for visible areas in Excel. Here’s an overview of the dataset for today’s task.

excel limit visible area


Method 1: Using Hide & Unhide Command to Set Limit for Rows and Columns

We will apply the Hide & Unhide command to set the limit for visible areas in Excel. First of all, we use this command to restrict rows. Hence, we will restrict columns.

1.1 Limit Rows to Restrict Visible Area

Now, we will set limit rows to restrict visible areas. From our dataset, we can easily do this task. Let’s follow the instructions below to learn!

Steps:

  • Firstly, select your data range where you will set limit rows to restrict visible areas. From our dataset, we will select B4 to E14. Hence, from your Home tab, go to,

Home → Cells → Format → Hide & Unhide → Hide Rows

Limit Rows to Restrict Visible Area

  • As a result, you will be able to set limit rows to restrict visible areas which have been given in the below screenshot.

Notes
You can set the limit rows to restrict visible areas by applying a keyboard shortcut as well. To do that, simply press  Ctrl + 9  simultaneously on your keyboard.

Read More: How to Limit Data Range in Excel Chart (3 Handy Ways)


1.2 Limit Columns to Restrict Visible Area

Now, we will learn how to set limit columns to restrict visible areas in Excel. Let’s follow the instructions below to learn!

Steps:

  • Set limit columns to restrict visible areas, firstly, select C7 to D13. After that, from your Home tab, go to,

Home → Cells → Format → Hide & Unhide → Hide Columns

Limit Columns to Restrict Visible Area

  • Finally, you will be able to set limit columns to restrict visible areas which have been given in the below screenshot.

Notes
You can set the limit columns to restrict visible areas by apply keyboard shortcut as well. To do that, simply press  Ctrl + 0  simultaneously on your keyboard.

Read More: How to Set Limit in Excel Cell (5 Simple Ways)


Method 2: Utilize Properties Window Command to Set Visible Area Limit in Excel

In this method, we will apply the Properties Window command under the Developer tab to set the limit for visible areas. Let’s follow the instructions below to learn!

Steps:

  • First of all, open a Microsoft Visual Basic for Applications, to do that, firstly, from your Developer tab, go to,

Developer → Visual Basic

Utilize Properties Window Command to Set Visible Area Limit in Excel

  • After clicking on the Visual Basic ribbon, a window named Microsoft Visual Basic for Applications – Limit Visible Area will instantly appear. From that window, we select the View Further, from the View tab, go to,

View → Properties Window

  • After that, type $A$1:$E$19 in the ScrollArea typing box.

Utilize Properties Window Command to Set Visible Area Limit in Excel

  • As a result, you will be able to set limits for visible areas.

  • To understand this method clearly, have a look at the below GIF.

Read More: How to Limit Scroll Area in Excel (3 Easy Ways)


Method 3: Run Excel VBA Code to Set Limit for Visible Area in Excel

Last but not least, I’ll show you how to limit cells to restrict visible areas in Excel by using a simple VBA code. It’s beneficial for some particular moments. From our dataset, we will limit cells to restrict visible areas in Excel. Let’s follow the instructions below to learn!

Step 1:

  • First of all, open a Module, to do that, firstly, from your Developer tab, go to,

Developer → Visual Basic

Run Excel VBA Code to Set Limit for Visible Area in Excel

  • After clicking on the Visual Basic ribbon, a window named Microsoft Visual Basic for Applications – Limit Visible Area will instantly appear in front of you. From that window, we will insert a module for applying our VBA code. To do that, go to,

Insert → Module

Step 2:

  • Hence, the Limit Visible Area module pops up. In the Limit Visible Area module, write down the below VBA code.
VBA Codes
Private Sub Limit_Visible_Area()
     ActiveSheet.ScrollArea = "B4:E19"
End Sub
Run Excel VBA Code to Set Limit for Visible Area in Excel
  • Further, run the VBA To do that, go to,

Run → Run Sub/UserForm

  • Afterward, running the VBA Code, go back to your worksheet and you will be able to set the limit for visible areas which has been given in the below GIF.

Run Excel VBA Code to Set Limit for Visible Area in Excel


Bottom Line

👉 You can pop up the Microsoft Visual Basic for Applications window by pressing  Alt + F11  simultaneously. You can open the Microsoft Visual Basic Applications window by using the

 ALT + L + V   shortcut as well.

👉 If a Developer tab is not visible in your ribbon, you can make it visible. To do that, go to,

File → Option → Customize Ribbon

Read More: How to Limit Sheet Size in Excel (3 Suitable Ways)


Conclusion

I hope all of the suitable methods mentioned above to set limits for the visible areas will now provoke you to apply them in your Excel spreadsheets with more productivity. You are most welcome to feel free to comment if you have any questions or queries.


Related Articles

Tags:

Md. Abdur Rahim Rasel

Md. Abdur Rahim Rasel

Hi! I'm Md. Abdur Rahim Rasel. Welcome to my Profile. Currently, I am working and doing research on Microsoft Excel and here I will be posting articles related to this. I have completed my graduation in Naval Architecture and Marine Engineering(NAME) from Bangladesh University of Engineering and Technology(BUET). I have a passion for learning new things with my knowledge through perseverance and hard work.

We will be happy to hear your thoughts

Leave a reply

5 Excel Tips
You Never Knew

Genius tips to help you unlock Excel's hidden features

FREE EMAIL BONUS

ExcelDemy
Logo