hide / unhide rows

  1. M

    Hiding rows automatically

    Dear all, I have a question regarding a spreadsheet I have. I have already searched other threads but I can't find any helpful solution (since it's quite complex). I do not know a lot about macro's and would need a macro to automatically hide rows if the row is empty (some rows do contain IF...
  2. B

    Hide Rows/Hide Columns Based on Value in Cell

    Hello! I am just getting started with VBA, and am trying to figure out two separate but related questions. I was hoping to set up a macro that would let me 1) Show columns where cell in row 2 equals values in 1 of 3 cells on a separate worksheet. So if the value in row 2 of current...
  3. L

    VBA - Hiding and Unhiding numerous rows based on numerous cells

    Hi, I'm new to VBA and Macros so apologies for that! What I have managed to achieve so far based on online forums and guides, is to hide or unhide a column and 'rows in a different sheet' based on a data validation selection in a cell. Example: <tbody> Stages Yes or No Stage 1 Yes Stage...
  4. E

    VBA: Trying to hide/unhide rows based on cell values and a checkbox in Excel 2010

    Hi guys, I'm trying to create a "front page" where a couple of checkboxes allow the user to unhide/hide rows in other sheets, based on the country value in the A column in these sheets. I've included my code for a single checkbox, which works well enough in terms of hiding rows when the...
  5. G

    Hide row based on cell value

    I have been asked to create a check sheet where D16 is a drop-down data validation with 26 options, our of those options there are 6 options that do not require addition cells to updated and I would like to hide the rows that contain these calls. There are two instances of this type of scenario...
  6. A

    Help with VBA to protect and unprtec sheet

    Hi, I have a file with the following VBA:</SPAN></SPAN> Private Sub Worksheet_Change(ByVal Target As Range)</SPAN></SPAN> Dim Sheet As Worksheet</SPAN></SPAN> 'I have a dropdown with the following options:</SPAN></SPAN> 'New > 250 but <750</SPAN></SPAN> 'New >750</SPAN></SPAN> 'Existing >250...
  7. N

    Hide a Column in All Worksheets when Opening the Workbook

    I'd like to hide column "B" for all worksheets and set the Row height to 15 for all worksheets when I open the workbook. I tried a For Next Loop but I'm encountering run-time errors. Here's the code: Sub Workbook_Open() Dim ws As Worksheet For Each ws In ThisWorkbook.Worksheets...
  8. A

    VBA to hide named cell areas in excel

    Hi All, Please help with a VBA to hide / unhide rows based on named cell areas. I have a dropdown button with the following options: New > 250 but <750 New >750 Existing >250 but <750 Existing >750 Ending I have the following named areas: Pricing : rows 36-57 Customer : rows 62-65 Payment ...
  9. I

    Macros - hide and unhide

    I want to hide rows 9:11 if the answer to C8 is no, if the answer is yes, then unhide them. If nothing is written, then hidden. Does the name of the sheet matter?
  10. A

    Hide rows based on answer in a drop-down box

    Greetings, I'm new here and would like some assistance on VBA coding. I have a specific query which has defeated my lack of expertise. In one tab of a spreadsheet, I have a drop-down box (E19) with 5 possible answers, let's call them This, That, TheOther, Another, YetAnother. Based on the...
  11. H

    Hide\Unhide cell based on cell value !!!

    Hey anyone, I am having problems trying to work out a macro to hide/unhide a cell based on a value. The value is derived from a IF statement. Below is the information you may need, any help would be appreciated. I have looked through the forums and used other suggestions for other posts, but...
  12. P

    Auto hide/unhide random rows using Macros

    Hi, I am very new to macros and try to use them by visiting similar queries and trying out the suggested codes. But this one problem I am not able to solve. I am not sure whether this exact thing has been covered or not hence I am posting this. 1. So I have a set of values in a drop-down(from...
  13. A

    checkbox when row is hidden - resizing problem

    Hi, I am making a workbook for work. I'm using activeX checkbox to hide and unhide certain rows when a checkbox is activated. In the section of hidden rows I have another set of checkboxes. I got the code to hide and unhide them, but if I save the file with them hidden and reopen the file and...
  14. P

    ActiveX check boxes repositioning after saving

    Hi, I created a questionnaire on excel, with Activex check boxes. the checkboxes unhide the rows of the next question, depending on which one you answer. So I have hidden the checkboxes in the same rows as the question, using the 'move and size with cells' option. I set it up and it worked...
  15. S

    Help needed with row hiding based on cell value

    I want to hide certain rows based on a selection from a drop-down list. My code so far: Private Sub Worksheet_Change(ByVal Target As Range) If Cells(10, 8).Value = "Yes" Then 'ActiveSheet.Unprotect Rows("11:12").Hidden = False 'ActiveSheet.Protect , DrawingObjects:=True, Contents:=True...
  16. G

    macro to hide all rows with specific text in column B.

    Hi, I am looking for a macro to hide all rows that have the word "detail" in column B. This will ultimately be assigned to a button. I feel like this should be an easy one, but I seem unable to get the If function to work. Any help is appreciated.
  17. A

    VBA: Hide/Unhide Button - Cell Value - Some Rows to Remain Hidden Always

    Excel 2010: So I have VBA script that toggles between hiding and unhiding a set of rows. Private Sub CommandButton1_Click() Dim myRng As Range Dim myRng2 As Range Dim IsHidden As Boolean Set myRng = Me.Range("ProductionData") IsHidden = myRng(1).EntireRow.Hidden...
  18. G

    Hide Rows based of items from a ComboBox List.

    I have 2 Combo box's sitting side by side, based off the list I need rows hidden and shown, so that the proper questions are shown. This is repeated down the sheet. This is the code I was using when I was using Data Validation, however since I need the arrow on the right hand side to always...
  19. A

    Hide Rows based on another cell value changing

    Hi, I don't think what I am trying to do is too complex but I am getting stumped with it. What I have is 2 sheets in a workbook. Sheet 1 has cells with a unique id number and a yes/no/not relevant selection box. Sheet 2 has a lot more data but the data is grouped by the unique id number from...
  20. B

    Hide Row on Column and Cell Based evaluation

    I have a spreadsheet with a list of questions. Only a portion of these questions will be applicable in any given scenario so I'd like to have a macro to hide the rows of questions that are not applicable. Let's call this sheet("Questions") I have a separate sheet where someone enters...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top