Hi
With formatting you cant do this.
With VB you can.
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
If Target.Value = 1 Then
Rows(Target.Row).RowHeight = 0
Else
End If
End Sub
Change the =1 to whatever you want in order for the code to trigger.
Hope this helps
Jacob
Jacob: Thanks for the quick response. I'm not sure I understand your answer completely. How do I do what you suggest?
:: Hi
In Excel press Alt + F11 to open the vb
double click on the This Workbook Code
Paste the code there
Jacob : Thanks for the quick response. I'm not sure I understand your answer completely. How do I do what you suggest?
Jacob: can you please email a small spreadsheet to me that does what you suggest? I can't get it to work.
Hi Jacob,
I'm trying to get more familiar with VBA coding, and have just a quick question.
Why would you use:
Rows(Target.Row).RowHeight = 0
instead of something like:
Target.EntireRow.Hidden = True
Again, I'm not questioning your code. I'm just trying to figure out if there's any specific technical reason why you would choose one over the other. Hi
They do the same thing. No reason to choose one over the other
I'm trying to get more familiar with VBA coding, and have just a quick question. Why would you use: Rows(Target.Row).RowHeight = 0 instead of something like: Target.EntireRow.Hidden = True Again, I'm not questioning your code. I'm just trying to figure out if there's any specific technical reason why you would choose one over the other. : Hi