Here we are hiding column C.Īs we want to hide entire Column C, select the EntireColumn function followed by Hidden as shown below. Similarly, you may hide or unhide the selected rows by using respective menu options.In the newly opened Module, write the subcategory of VBA Hide Column or we can choose any other name as per our choice as shown below.įirst, select the column/s that we need to hide.
![unhide a column in excel vba unhide a column in excel vba](https://cdn.wallstreetmojo.com/wp-content/uploads/2019/06/vba-hide-2.gif)
Note: By clicking on the “Hide Sheet” option, the current worksheet will hide. Open its menu and click on the “ Hide Columns” option. Under the “ Visibility” you can see “ Hide & Unhide”. Locate the “Cells” group and there you can see the “ Format” button along with others as shown below: Select the column you want to hide by clicking on the column head e.g.
UNHIDE A COLUMN IN EXCEL VBA HOW TO
I will show you how to hide the column while the process of hiding row remains the same as in the above examples. This is how you may hide the column, rows, and even the worksheet by using the main menu in the ribbon. You may double click or drag the lower line to unhide a row. Similarly, the hidden row border is thicker that indicates the hidden row. You may also unhide the hidden column by double-clicking the double line or drag the line towards the right. If you look closer at the column lines after hiding a column, you will notice those are double lines and look a little thick than normal columns. Right click on the C or F column and click on the “Unhide” menu option as shown below: In our first example, we have hidden the D column. Select any of the adjacent columns of the hidden column. Follow this to unhide the hidden row or column.
![unhide a column in excel vba unhide a column in excel vba](https://cdn.educba.com/academy/wp-content/uploads/2018/12/Unhide-Column-using-mouse-1-4-2.png)
To unhide the hidden column or row, the procedure is simple and alike. Right click on any of the selected row numbers or their cells and press the “Hide” option. Press the Ctrl key and select other row(s) that you want to hide. Just like hiding multiple columns that are not adjacent, for hiding multiple non-adjacent rows, select a row by clicking on the row number. Hiding multiple rows that are not adjacent The result of this is hidden sixth row is as shown below: Right click on the row number or any cell of that row and click on the Hide option in the menu as we did to hide a column. Suppose, we want to hide the row number 6 in our demo: Select a row by clicking on the row number. Right click on any of the cell of column B or D and press Hideoption as shown in the first example. This is how columns B and D look after we selected: If you want to hide more columns then keep pressed the Ctrl key and select those columns.
![unhide a column in excel vba unhide a column in excel vba](https://appauthority.com/wp-content/uploads/2021/07/move-column-4-1200x465-2-1024x397.jpeg)
Press the Ctrl key in the keyboard and select the column “D”. Select the B column by clicking on the letter “B”. Suppose we want to hide the columns B and D. However, if you want to hide two or more columns that are not adjacent by a single click, follow this. Hiding multiple columns by single click exampleīy following the above method, you may hide as many columns as you want one by one. You can see, the D column is disappeared. For our demo, I selected the D column and clicked on the Hide option in the menu, after right clicking on a cell and see the result: Now, right-click on any cell of that column and click on the “ Hide” option in the menu: It should select the whole column as shown below:
![unhide a column in excel vba unhide a column in excel vba](https://www.jquery-az.com/wp-content/uploads/2019/07/52.2-Excel-unhide.png)
Select the column that you want to hide by clicking on the letter: A, B, C etc. Similarly, to unhide the hidden row or column, you need to press the Unhide menu item after right-clicking on the adjacent row or column I will show you how with screenshots in the section below.įor hiding one column in Excel, follow these steps. Hiding the rows or columns in Excel is just the matter of right clicking on the column letter or row number and pressing the Hide option in the menu.