Hey everyone,
I am hoping you can help me out with creating a way for my spreadsheet to auto hide a row if there is a value of zero and bring it back if the value changes to anything greater than zero. I'm not sure how much information you need, so I will try to give as much detail as possible. I have been researching this for a few days and it seems to me that my best option would be to use a Macro, however, I don't have any knowledge of VBA so while I was finding some that seemed like it would work, my lack of skill in writing it was preventing me from editing it to be able to use how I need.
Unfortunately I cannot post the sheet, but I'm going to try and include as much detail as possible. The sheet itself is used as a template and is used each day by users and saved as a new copy after. There are two sheets that we use, the first sheet is where the original data is input. It is simple formulas to calculate up costs and such. The second sheet pulls the information on items sold so that it can be viewed quickly and provides additional information on what was sold. What I want to do is be able to have the rows hidden when an item is not sold so that we don't have the information there when we do not need it.
The sheet that I need the rows hidden in currently uses column B for the quantity, which currently will show a zero automatically unless the value changes on the first sheet. Currently I have rows 2-38 in use, but I assume I would be able to modify the VBA with this information if needed.
If there is an easier way for me to go about this, I am more than willing to try it as well, it just seemed like this was the best way to go based on what I was reading. I have found several posts on this being done, but like I said, since I can't really write the VBA it wasn't working for me. I think it is fairly simple what I need to do, again, I just need the cells to hide if the value is zero, but unhide if the value is changed, i.e. as a result of a number being input incorrectly on the first sheet. I also considered using a button to apply the macro? I'm not sure if this would make it easier so that the rows are not hidden until everything has been input.
Let me know if there is any information that I have left out and I can add that as well.
Thank you so much for any help you can provide!
I am hoping you can help me out with creating a way for my spreadsheet to auto hide a row if there is a value of zero and bring it back if the value changes to anything greater than zero. I'm not sure how much information you need, so I will try to give as much detail as possible. I have been researching this for a few days and it seems to me that my best option would be to use a Macro, however, I don't have any knowledge of VBA so while I was finding some that seemed like it would work, my lack of skill in writing it was preventing me from editing it to be able to use how I need.
Unfortunately I cannot post the sheet, but I'm going to try and include as much detail as possible. The sheet itself is used as a template and is used each day by users and saved as a new copy after. There are two sheets that we use, the first sheet is where the original data is input. It is simple formulas to calculate up costs and such. The second sheet pulls the information on items sold so that it can be viewed quickly and provides additional information on what was sold. What I want to do is be able to have the rows hidden when an item is not sold so that we don't have the information there when we do not need it.
The sheet that I need the rows hidden in currently uses column B for the quantity, which currently will show a zero automatically unless the value changes on the first sheet. Currently I have rows 2-38 in use, but I assume I would be able to modify the VBA with this information if needed.
If there is an easier way for me to go about this, I am more than willing to try it as well, it just seemed like this was the best way to go based on what I was reading. I have found several posts on this being done, but like I said, since I can't really write the VBA it wasn't working for me. I think it is fairly simple what I need to do, again, I just need the cells to hide if the value is zero, but unhide if the value is changed, i.e. as a result of a number being input incorrectly on the first sheet. I also considered using a button to apply the macro? I'm not sure if this would make it easier so that the rows are not hidden until everything has been input.
Let me know if there is any information that I have left out and I can add that as well.
Thank you so much for any help you can provide!