Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Hiding Rows with Zero or Blank Values

I've done this alot before when I worked at E&Y.
If you know how to code basic VB in excel you could do it by adding an
additional column (I) that takes the ABS value of column F + Column G). Copy
this formula all the way down so it starts at cell I18 to Ixxx

Sub HideRows()
calculate
range("I18").select
Cells.EntireRow.Hidden = False
do
if Activecell.value = 0 then ActiveCell.EntireRow.Hidden = True
Activecell.Offset(1,0).select
loop until activecell.Formula = ""
end sub

"JMay" wrote in message news:UZWVa.2854$Or.2450@lakeread06...
Each Month I need to fill in a Standard journal entry (Columns A-H with
Column F (Debits-$$) & G (Credits-$$)). There is 17 rows of header
information and beginning on row 18 I begin the regular detail account

text
and Dr/Cr update. Some months my line # say 20, 25-28, 35 and 38-45 may
have $0.00 dollar amounts. I wish to leave the lines intact on the
worksheet, but hide all rows that have either the 0.00 in either the Debit
or Credit column or are Blank (both in Column F & G). Could someone help

me
with the code that I can assign to a button (I can do that) where I can

have
(the Macro) it collapse such 0.00 rows and give me only positive rows??..
TIA,,




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
auto hiding blank rows Jase Excel Discussion (Misc queries) 0 October 8th 08 02:50 PM
Hiding blank rows using a macro GJR3599 Excel Discussion (Misc queries) 1 March 20th 07 09:22 PM
Hiding Rows if Blank cell mohd21uk via OfficeKB.com Excel Worksheet Functions 3 April 13th 06 10:28 AM
Hiding Rows if the linked rows are blank KG Excel Discussion (Misc queries) 9 May 18th 05 02:32 AM
Hiding blank rows mlkpied Excel Discussion (Misc queries) 1 March 29th 05 08:57 PM


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