View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Chip Pearson Chip Pearson is offline
external usenet poster
 
Posts: 7,247
Default How do I write a macro that hides a row based on data in Excel?

Try something like

If Range("A1").Value 100 Then
Rows(3).Hidden = False
Else
Rows(3).Hidden = True
End If


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"JJO" wrote in message
...