Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
tp58tp
 
Posts: n/a
Default Macro to hide rows with empty cells

I have a spreadsheet to reflect daily production. In columns A and B there
is a complete listing of all product codes and descriptions. Column C is the
particular day's production. When I normally prepare this for distribution I
manually hide the rows of products which had no production for that day - to
make a short, concise report. How can I create a macro to auomatically do
this?
  #2   Report Post  
Debra Dalgleish
 
Posts: n/a
Default

Instead of a macro, you could use an AutoFilter (DataFilterAutoFilter)
In the dropdown in the heading for Column C, select (NonBlanks)
Or, if the rows contain zeros, choose Custom, and set the criteria to
not equal to 0

There's information on AutoFilter in Excel's Help, and he

http://contextures.com/xladvfilter01.html

tp58tp wrote:
I have a spreadsheet to reflect daily production. In columns A and B there
is a complete listing of all product codes and descriptions. Column C is the
particular day's production. When I normally prepare this for distribution I
manually hide the rows of products which had no production for that day - to
make a short, concise report. How can I create a macro to auomatically do
this?



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

Turn the macro recorder on, select column C, DataFilter, select the
dropdown at the head of the column, and choose NonBlanks, stop the macro
recorder.

That's it, you have your macro.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"tp58tp" wrote in message
...
I have a spreadsheet to reflect daily production. In columns A and B

there
is a complete listing of all product codes and descriptions. Column C is

the
particular day's production. When I normally prepare this for

distribution I
manually hide the rows of products which had no production for that day -

to
make a short, concise report. How can I create a macro to auomatically do
this?



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
CountIF cells are not empty Wayne Excel Discussion (Misc queries) 3 January 6th 05 05:44 PM
Adding Rows to Master Sheet Excel Newbie New Users to Excel 1 December 23rd 04 11:56 PM
Sumproduct ... Empty Cells vs Spaces? Ken Excel Discussion (Misc queries) 9 December 17th 04 09:03 PM
Excel - if cells = 0, how to conditionally hide rows in chart fineimage Excel Worksheet Functions 1 November 11th 04 10:45 PM
Macro for sorting different rows ciscopena Excel Worksheet Functions 0 November 2nd 04 12:04 AM


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