A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

auto filter macro



 
 
Thread Tools Display Modes
  #1  
Old November 23rd, 2003, 08:40 PM
external usenet poster
 
Posts: n/a
Default auto filter macro

I want to use auto filter or some other device to hide
those rows whose first column has a zero in it. I would
like to come up with a macro that automatically does
this. The purpose is to have a sales order whose first
column of every row is the quanity of each item ordered.
If zero is ordered than that row would be hidden. This
sales order would be linked to a data input sheet where
the actual input would take place. Please help!!!
  #2  
Old November 23rd, 2003, 08:49 PM
Jason Morin
external usenet poster
 
Posts: n/a
Default auto filter macro

Try recording a macro (Tools Macro Record New Macro)
that apply an autofilter (Data Filter AutoFilter) to
your sheet and filter for "0" in column A.

HTH
Jason
Atlanta, GA

-----Original Message-----
I want to use auto filter or some other device to hide
those rows whose first column has a zero in it. I would
like to come up with a macro that automatically does
this. The purpose is to have a sales order whose first
column of every row is the quanity of each item ordered.
If zero is ordered than that row would be hidden. This
sales order would be linked to a data input sheet where
the actual input would take place. Please help!!!
.

  #3  
Old November 23rd, 2003, 08:51 PM
Don Guillett
external usenet poster
 
Posts: n/a
Default auto filter macro

This will do it. If you want to hide, use as is, to delete change the
comment line

Sub delblanks()
With Range("a2:a" & Cells(65536, "a").End(xlUp).Row) 'Selection
'.SpecialCells(xlBlanks).EntireRow.Delete
.SpecialCells(xlBlanks).EntireRow.Hidden = True
End With
End Sub


--
Don Guillett
SalesAid Software

wrote in message
...
I want to use auto filter or some other device to hide
those rows whose first column has a zero in it. I would
like to come up with a macro that automatically does
this. The purpose is to have a sales order whose first
column of every row is the quanity of each item ordered.
If zero is ordered than that row would be hidden. This
sales order would be linked to a data input sheet where
the actual input would take place. Please help!!!



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:09 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.