Auto hide rows and columns based on value in specific cell

允我心安 提交于 2019-12-11 04:46:38

问题


I'm trying to write a spreadsheet that will hide the majority of rows and about half the columns when the value of A1=blank. Rows will be based on properties, with 14 rows per property (first row will have the main information; the rest will contain various types of inspections). Columns will be random information about the property, including a bunch of dates.

The goal is that the spreadsheet would be a summary of data when A1=blank, but very detailed information about the property would open up when A1=PropertyName. The rest of the rows for the other properties besides the main row would remain hidden.

So, if A1=PropertyName, then I'd like the rows for that property and columns to be unhidden.

I tried various methods I found via Google, but I have very basic understanding of VBA, so I can't get those methods to work. Also, I've only found ways to hide rows and columns separately (which I wasn't able to get working anyway), and I don't have the experience to know how to combine them.

If anyone can give me a start in the right direction, I'm sure I can use it to make the rest of it work. If you need any clarification on anything I've said, please ask. Thank you for the assistance.

来源:https://stackoverflow.com/questions/37754928/auto-hide-rows-and-columns-based-on-value-in-specific-cell

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!