Quantcast
Viewing all articles
Browse latest Browse all 11829

VBA Problem

Hello 

I hope you can help me. I'm making an excel template where I used to I store the rows so I can get a nice page layout. I try at VBA (I'm new to this area). I have tried with the code. 


Sub Hide () 
For Each cell In Range ("Check Range") 

If cell.Value> "" Then 
     cell.EntireRow.Hidden = False 
else 
     cell.EntireRow.Hidden = True 
End If 

Next cell 


End Sub 

Does not seem it works. Hope I can get a solution. I would also like to send the file if it can help. 

Regards Steffen

Viewing all articles
Browse latest Browse all 11829

Trending Articles