#1   Report Post  
Posted to microsoft.public.excel.misc
PaulOakley
 
Posts: n/a
Default Hide values


I am trying to hide values as found in the attached.

Can anyone help, i have asked thi s question in a previous thread but
the VB is causing me problems, and i cant quite work out why, the macro
i have tried to use is present in the xls.

Thanks in advance


+-------------------------------------------------------------------+
|Filename: Summary.zip |
|Download: http://www.excelforum.com/attachment.php?postid=4571 |
+-------------------------------------------------------------------+

--
PaulOakley
------------------------------------------------------------------------
PaulOakley's Profile: http://www.excelforum.com/member.php...o&userid=25103
View this thread: http://www.excelforum.com/showthread...hreadid=529159

  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Hide values

Sub Hidecolums()
Dim Lcolumn As Long
Dim MyRng As Range
Dim c As Range

Lcolumn = Cells(25, Columns.Count).End(xlToLeft).Column
Set MyRng = Range("C25", Cells(25, Lcolumn))

For Each c In MyRng
If c.Value = 0 And c.Value < "" Then
c.EntireColumn.Resize(, 2).Hidden = True
End If
Next c
End Sub



--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"PaulOakley" wrote
in message ...

I am trying to hide values as found in the attached.

Can anyone help, i have asked thi s question in a previous thread but
the VB is causing me problems, and i cant quite work out why, the macro
i have tried to use is present in the xls.

Thanks in advance


+-------------------------------------------------------------------+
|Filename: Summary.zip |
|Download: http://www.excelforum.com/attachment.php?postid=4571 |
+-------------------------------------------------------------------+

--
PaulOakley
------------------------------------------------------------------------
PaulOakley's Profile:

http://www.excelforum.com/member.php...o&userid=25103
View this thread: http://www.excelforum.com/showthread...hreadid=529159



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
how to hide 0 values in pivot table maryj Excel Discussion (Misc queries) 3 April 1st 06 09:49 AM
hide 0 values in ptable maryj Excel Discussion (Misc queries) 0 March 29th 06 04:22 PM
Hide all values in a row if value is 0 Erik T Excel Worksheet Functions 1 March 16th 06 12:20 AM
How do I hide 0 values in line charts Stephan Charts and Charting in Excel 2 April 12th 05 12:55 PM
Excel - hide erroer values Kathrine J Wathne Excel Discussion (Misc queries) 1 January 10th 05 10:13 PM


All times are GMT +1. The time now is 11:09 PM.

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

About Us

"It's about Microsoft Excel"