Need VBA Code/Marcos To Hide Less than zero amounts. Not a filter

A

ABA

I was informed that Excel does not have a function to hide data/rows in a
worksheet besides using the filter. I am trying to create a template that is
"user friendly for my company. Eample of what I need to do:

Spreadsheet 1 - All Data
Spreadsheet 2 - All Data with Quantity and dollar amounts
*Spreadsheet 3- Needs to display data only with a dollar amounts equal to or
greater than 1. Also data needs to be able to show up on spreadsheet 3
anytime dollar amount is added to spreadsheet 2. (Basically Hide all Line
itmes and data with zero dollar amounts)

I read from a discusion Group that this can only be acheived by using a
VBA/Marcos Code. I have no clue how to use, create or apply one to my
spreadheet. Can someone assist me and give me step by step directions!
PLEASE HELP! THANK YOU!

Please Note: Someone typed this code: Rows(RowNdx).EntrieRow.Hidden = True
End if Next RowNdx End Sub *I have no clue how to use it, where to apply
it, or if it is even a real code????????????????
 
D

Don Guillett

try this
Sub hiderowslessthanzero()
mc = "a"
Rows.Hidden = False
For i = Cells(Rows.Count, mc).End(xlUp).Row To 2 Step -1
If Cells(i, mc) < 0 Then Rows(i).Hidden = True
Next i
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top