Good Morning!
So I am trying to create a sheet that will group all the data together on a master sheet, without making a lot of mess. So far, I have the obvious paste link bit working, but because there are a number of rows that are always changing, I have to paste in rows with no value, on the off chance that row becomes active. This has led to a sheet with rows and rows of 0 value data. I have managed to create command button that, when clicked, will eliminate all the 0 values without any trouble, using this code:
Sheets("Summary Sheet").Select
Range("B1:B600").Select
For Each cell In Selection
If cell = 0 Then
Range(cell.Address).EntireRow.Hidden = True
End If
Next
But what I can't figure out is how to make it show rows once a value has been input. Unfortunately, it isn't a 0 or 1, it's either 0 or text. I have no idea what to do now.
So I am trying to create a sheet that will group all the data together on a master sheet, without making a lot of mess. So far, I have the obvious paste link bit working, but because there are a number of rows that are always changing, I have to paste in rows with no value, on the off chance that row becomes active. This has led to a sheet with rows and rows of 0 value data. I have managed to create command button that, when clicked, will eliminate all the 0 values without any trouble, using this code:
Sheets("Summary Sheet").Select
Range("B1:B600").Select
For Each cell In Selection
If cell = 0 Then
Range(cell.Address).EntireRow.Hidden = True
End If
Next
But what I can't figure out is how to make it show rows once a value has been input. Unfortunately, it isn't a 0 or 1, it's either 0 or text. I have no idea what to do now.