#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Excel

I want to set up a logical condition : If a specific cell is blank then hide
row.

Can this be done and how would you recommend implementing

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default Excel

You would need a macro to do that.

Here's an example of a macro that hides rows:

Sub HideRow()
'Hides rows 1:2
Rows("1:2").Select
Selection.EntireRow.Hidden = True
End Sub

--
Brevity is the soul of wit.


"cdstorage" wrote:

I want to set up a logical condition : If a specific cell is blank then hide
row.

Can this be done and how would you recommend implementing

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default Excel

I neglected to include the test for a blank cell in my original post.

Assume you put a formula in cell B5 that tests whether B2 is blank, and if
B2 is blank, you have a 1 entered in B5: =IF(ISBLANK(B2),1,""). Then you can
use the following macro to hide rows 1:2

Sub Hiderows()
If Range("B5") = 1 Then
Rows("1:2").Select
Selection.EntireRow.Hidden = True
Else
Rows("1:2").Select
Selection.EntireRow.Hidden = False
End If
End Sub


--
Brevity is the soul of wit.


"cdstorage" wrote:

I want to set up a logical condition : If a specific cell is blank then hide
row.

Can this be done and how would you recommend implementing

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Excel

Dave
What is I'm looking for all cells in column a that are blank and if true I
want to hide the entire row

"Dave F" wrote:

You would need a macro to do that.

Here's an example of a macro that hides rows:

Sub HideRow()
'Hides rows 1:2
Rows("1:2").Select
Selection.EntireRow.Hidden = True
End Sub

--
Brevity is the soul of wit.


"cdstorage" wrote:

I want to set up a logical condition : If a specific cell is blank then hide
row.

Can this be done and how would you recommend implementing

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 620
Default Excel

Auto-filter the range, and Show non-blanks?
--
David Biddulph

"cdstorage" wrote in message
...
I want to set up a logical condition : If a specific cell is blank then
hide
row.

Can this be done and how would you recommend implementing





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Excel

Dave
A little more help if you can

I need to look at all cells in column a & b, for blanks, if cell a% and cell
b% tehn hide row


"Dave F" wrote:

I neglected to include the test for a blank cell in my original post.

Assume you put a formula in cell B5 that tests whether B2 is blank, and if
B2 is blank, you have a 1 entered in B5: =IF(ISBLANK(B2),1,""). Then you can
use the following macro to hide rows 1:2

Sub Hiderows()
If Range("B5") = 1 Then
Rows("1:2").Select
Selection.EntireRow.Hidden = True
Else
Rows("1:2").Select
Selection.EntireRow.Hidden = False
End If
End Sub


--
Brevity is the soul of wit.


"cdstorage" wrote:

I want to set up a logical condition : If a specific cell is blank then hide
row.

Can this be done and how would you recommend implementing

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
Stop excel from dropping the 0 in the beginning of a number? Rosewood Setting up and Configuration of Excel 12 April 4th 23 02:12 PM
Excel docs not saving as excel docs Beth Excel Discussion (Misc queries) 6 September 12th 06 02:39 AM
Open Excel 2003 from Windows Explorer pmpjr Excel Discussion (Misc queries) 9 September 11th 06 03:58 PM
Need suggestions for some uses of Ms Excel Bible John Excel Discussion (Misc queries) 1 February 27th 06 05:30 PM
Excel Range Value issue (Excel 97 Vs Excel 2003) Keeno Excel Discussion (Misc queries) 2 June 13th 05 02:01 PM


All times are GMT +1. The time now is 11:05 AM.

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"