Hello,
I have been searching lots of forums to see if I can find a solution to my query but not been very successful.
I am looking to build a VBA into my worksheet to hide rows across numerous columns that show zero values. I would also like to have the ability to unhide these rows when new information needs inserting. I am not very experienced in building macro's/ VBA's. I have managed to build a VBA that hides rows successfully but when I tried to build in a unhide function, it didn't work.
I have used a command button because I am building this file that is shared and updated by numerous users so wanted a command button to help prompt them to use this facility.
I unfortunately cannot share the file due to sensitive information but the information I can share is there are around 2000 rows, spanning across columns C to AK. Starting with column C, there is a formula to demonstrate a word (product), column D then has a formula to show the value so every other column will have a value that is zero or > and this is the columns that I would like the macro to identify.
The columns are also spread by monthly periods, so for January, column C is product and column D is value for January and this format follows on across the months. One month there might be a value above zero and then the next month there is a value that is zero, I would like the macros to show rows that have a value above zero despite other periods not having a value, I am simply looking for a macro that hides rows and columns that both have zero values.
Sorry for the wordy message!! Is this something that can be achievable?
Many thanks in advance.
Laura
I have been searching lots of forums to see if I can find a solution to my query but not been very successful.
I am looking to build a VBA into my worksheet to hide rows across numerous columns that show zero values. I would also like to have the ability to unhide these rows when new information needs inserting. I am not very experienced in building macro's/ VBA's. I have managed to build a VBA that hides rows successfully but when I tried to build in a unhide function, it didn't work.
I have used a command button because I am building this file that is shared and updated by numerous users so wanted a command button to help prompt them to use this facility.
I unfortunately cannot share the file due to sensitive information but the information I can share is there are around 2000 rows, spanning across columns C to AK. Starting with column C, there is a formula to demonstrate a word (product), column D then has a formula to show the value so every other column will have a value that is zero or > and this is the columns that I would like the macro to identify.
The columns are also spread by monthly periods, so for January, column C is product and column D is value for January and this format follows on across the months. One month there might be a value above zero and then the next month there is a value that is zero, I would like the macros to show rows that have a value above zero despite other periods not having a value, I am simply looking for a macro that hides rows and columns that both have zero values.
Sorry for the wordy message!! Is this something that can be achievable?
Many thanks in advance.
Laura