![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 2
|
I'd like to hide rows based on data in the row as in
=IF(c5<>1,c12/2,HideRow) Seems like it shouldn't be too tricky, but just creating a relative macro called "HideRow" doesn't work. Is it a declration thing? Redefining it as publicfunction seems to return "0". |
|
|
|
|
|
#2 | |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
Hi
This seems like it will accomplish what you need. I though I had seen syntax to call a procedure from a formula, but I cannot find any info that's even close... Try this for now. Quote:
|
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Apr 2002
Posts: 2
|
Thank you fro your help, but I think I was a bit unclear. I want this to execute per row, so I'd drag-fill that command down the column
=IF(c5<>1,c12/2,HideRow) =IF(c6<>1,c12/2,HideRow) Each row being hidden on the c value. ... |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|