I have a range of Names in cell C19:C420 that I want to rank by sales, I have created a sheet that is showing all my data. Cells in C are merged together, for example, C19 and C20 are merged together to show a persons name. This carry's on up to the end of the data set.
the persons name in column C is derived from an IF statement. if it matches the criteria it will bring in the name, if not it will show "BLANK".
I need a VBA formula to go through the range C19:C420 in the sheet and hide cells with "BLANK" as well as the cell below it and then carry on through the range until it gets to the next blank and does the same until it gets to the end of the range.
Along with this I also need a VBA code to unhide all the hidden cells in that range with a click of a button I'm looking to place in the sheet.
I don't really know anything about writing a VBA code so the help would be grateful.
Thank you in advance.
the persons name in column C is derived from an IF statement. if it matches the criteria it will bring in the name, if not it will show "BLANK".
I need a VBA formula to go through the range C19:C420 in the sheet and hide cells with "BLANK" as well as the cell below it and then carry on through the range until it gets to the next blank and does the same until it gets to the end of the range.
Along with this I also need a VBA code to unhide all the hidden cells in that range with a click of a button I'm looking to place in the sheet.
I don't really know anything about writing a VBA code so the help would be grateful.
Thank you in advance.