Can you explain in words the circumstances under which you want to hide those columns?
Can you explain in words the circumstances under which you want to hide those columns?
Entia non sunt multiplicanda sine necessitate
Certainly,
I would like to hide the entire column when the third row in said column is 0. For example, clicking the "Show Relevant Data" button would hide any columns in which the third row is 0. So, if B3=0, column B hould be hidden. if C3="", column C would not be hidden and remain visible, etc. etc. until coloumn BA.
I hope this clarifies my question a little bit. Let me know if I am still not explaining it clearly.
Thank you!
![]()
Sub CommandButton1_Click() Dim cell As Range For Each cell In Me.Range("B3:BA3").Cells If VarType(cell.Value) = vbDouble And cell.Value = 0 Then cell.EntireColumn.Hidden = True End If Next cell End Sub
THANK YOU! I "approved" your response. Let Me know If there is anything else I can do to help you
Last edited by shg; 07-02-2010 at 01:26 PM. Reason: deleted quote
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks