Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Autohide Rows based on condition

How do I Autohide the rows when there is no entry, & show them when an
entry is made?


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Autohide Rows based on condition

Supriya previously wrote:

How do I Autohide the rows when there is no entry, & show them when an
entry is made?

That's a clever concept - entering data into hidden rows(:-)

Peter
  #3   Report Post  
Posted to microsoft.public.excel.programming
kim kim is offline
external usenet poster
 
Posts: 4
Default Autohide Rows based on condition

cells(row,column)="data" wouldn't have a problem if the row was hiden. :p
  #4   Report Post  
Posted to microsoft.public.excel.programming
kim kim is offline
external usenet poster
 
Posts: 4
Default Autohide Rows based on condition

tr
For row=1 to lastro
if condition then cells(row,1).entirerow.hid
Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Autohide Rows based on condition

Let me elaborate.
I have 2 sheets "call details" and "Reports"

The columns of Reports make cell reference to cells in Call Details
which contains formulas. So, 0 is shown if no calculations ar
done(condition). I want the rows in reports to be shown only if it ha
values(based on cell reference). Until then it should be hidden

--
Message posted from http://www.ExcelForum.com



  #6   Report Post  
Posted to microsoft.public.excel.programming
Rob Rob is offline
external usenet poster
 
Posts: 234
Default Autohide Rows based on condition

So for example, you have a formula in column A, which gives either TRUE or FALSE, and you have 20 rows of data. You could call procedure from worksheet_activate or data_change

sub ShowOnlyTrueRows
for row=1 to 20
if cells(row,1)=true then
cells(row,1).entirerow.hide
else
cells(row,1).entirerow.unhide
end if
next
end sub
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Autohide Rows based on condition

How to call the Procedure from worksheet_activate?

Where to write the code

--
Message posted from http://www.ExcelForum.com

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
Summing rows based upon condition Tom Excel Discussion (Misc queries) 2 February 7th 10 06:39 PM
programming to select rows based on condition Farhad Excel Discussion (Misc queries) 4 January 14th 10 01:18 AM
Delete Rows based on condition Vic Excel Discussion (Misc queries) 2 August 18th 09 08:54 PM
Macro to delete rows based on a condition Darrilyn Excel Worksheet Functions 1 September 6th 07 12:12 AM
format group of rows based on condition Aaron Excel Discussion (Misc queries) 0 January 10th 06 12:29 AM


All times are GMT +1. The time now is 06:39 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"