Hidding a Column Using VB

  • Thread starter Thread starter Bre-x
  • Start date Start date
B

Bre-x

Hi,

How do i hide a column depending of a value on a cell?

if mycell = 0 then hide column?

thnks

Bre-x
 
one way:

With myCell
.EntireColumn.Hidden = (.Value = 0)
End With
 

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