Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
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
![]() |
|||
|
|||
![]()
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
![]() |
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
CountIF cells are not empty | Excel Discussion (Misc queries) | |||
Adding Rows to Master Sheet | New Users to Excel | |||
Sumproduct ... Empty Cells vs Spaces? | Excel Discussion (Misc queries) | |||
Excel - if cells = 0, how to conditionally hide rows in chart | Excel Worksheet Functions | |||
Macro for sorting different rows | Excel Worksheet Functions |