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

I emailed you a sample worksheet to run.
I don't have professional training, but this works.

Sub Hide_Rows_With_Zero_Value()
Dim MyDebitValue

Range("A2").Select 'start at the top of the list
'each loop thru the Debit Value changes...
Do
MyDebitValue = ActiveCell.Offset(0, 6).Value 'column G

If MyDebitValue = "" Then 'if it is zero
Selection.EntireRow.Hidden = True
ActiveCell.Offset(1, 0).Select
Else
ActiveCell.Offset(1, 0).Select 'move to the next
row
End If

Loop Until ActiveCell.Value = "" 'loop until the value in
column A is empty
End Sub

Give it a try & good luck,
Robin


-----Original Message-----
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
Automatically Hiding Blank Rows [email protected] Excel Discussion (Misc queries) 5 December 31st 05 04:13 PM
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
Hiding Rows with Zero or Blank Values Robert Black Excel Programming 0 July 30th 03 11:21 PM


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