Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Hide Column without data

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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Hide Column without data

On 1ÔÂ30ÈÕ, ÉÏÎç11ʱ23·Ö, wrote:
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
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
EXCEL-2000 column headings hide from data CRHIV Excel Discussion (Misc queries) 3 February 25th 10 05:34 PM
Chart Blanks Out When I hide data column JMay Excel Discussion (Misc queries) 1 December 1st 08 07:34 AM
how can i hide the data and not the column excel Excel Discussion (Misc queries) 3 June 19th 08 01:09 PM
Want to auto hide rows in excel when no data in a certain column. Tim Excel Discussion (Misc queries) 3 June 30th 05 12:52 AM
Hide column based on data value Jay Excel Discussion (Misc queries) 1 March 25th 05 01:40 AM


All times are GMT +1. The time now is 09:56 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"