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

Hi

I have functions in column A which returns a result of text or blank ( i.e.
"" ).
I woul like to run a macro that hides the rows with a blank ( i.e. "" ) cell
in column A. Please help.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Ardus Petus
 
Posts: n/a
Default Hide rows

Sub HideEmpty()
Dim cell As Range
For Each cell In Range( _
Cells(1, "A"), _
Cells(Rows.Count, "A").End(xlUp) _
)
If cell.Value = "" Then _
cell.EntireRow.Hidden = True
Next cell
End Sub

HTH
--
AP

"nc" a écrit dans le message de
...
Hi

I have functions in column A which returns a result of text or blank (

i.e.
"" ).
I woul like to run a macro that hides the rows with a blank ( i.e. "" )

cell
in column A. Please help.



  #3   Report Post  
Posted to microsoft.public.excel.misc
nc
 
Posts: n/a
Default Hide rows

Hi Ardus

Thanks for this macro.

I have list of text. How can I find the position that list end and from
then hide the rows to a psecific row number?

Thanks.

"Ardus Petus" wrote:

Sub HideEmpty()
Dim cell As Range
For Each cell In Range( _
Cells(1, "A"), _
Cells(Rows.Count, "A").End(xlUp) _
)
If cell.Value = "" Then _
cell.EntireRow.Hidden = True
Next cell
End Sub

HTH
--
AP

"nc" a écrit dans le message de
...
Hi

I have functions in column A which returns a result of text or blank (

i.e.
"" ).
I woul like to run a macro that hides the rows with a blank ( i.e. "" )

cell
in column A. Please help.




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 can I invoke running a macro from within an "IF" function. ron Excel Worksheet Functions 11 February 8th 06 03:35 PM
Three tables on one worksheet, need to hide rows Chiku Excel Discussion (Misc queries) 12 December 6th 05 10:47 PM
macro to hide rows across several worksheets fails SandyR Excel Discussion (Misc queries) 5 October 3rd 05 09:04 PM
macro to hide rows if cell is blank Shooter Excel Worksheet Functions 3 September 28th 05 10:55 PM
how to hide rows in a protected sheet Prakash Excel Worksheet Functions 7 January 18th 05 02:42 PM


All times are GMT +1. The time now is 04:42 PM.

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"