Hide Column without data

  • Thread starter Thread starter youu917
  • Start date Start date
Y

youu917

Can any pro tell me about how to make a button that when clicked on,
it will hide those columns without certain Data. As in : Any column
doesn't have data in Row 3, it will hide when clicked the button.
 
Can any pro tell me about how to make a button that when clicked on,
it will hide those columns without certain Data. As in : Any column
doesn't have data in Row 3, it will hide when clicked the button.

haha, how stupid i am! sorry, i solved my problem already, here is the
code:
Sub Column_hide()
Dim r As Variant
For r = 9 To 700
If Cells(r, 71).Value = "0" Then
Rows(r).Hidden = True
End If
Next
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top