IDNetters Forums

Technical News & Discussion => Windows News & Discussion => Topic started by: Rik on Oct 28, 2010, 17:14:26

Title: Conditional printing from Excel
Post by: Rik on Oct 28, 2010, 17:14:26
Is there a way to create a sheet with two columns, one a text string, the other a boolean value, and then use the boolean field to determine whether the text string prints?

Sue wants to create a shopping list in which she has her regular shopping, and then be able to tick off the stuff she wants, leaving the unwanted items unprinted. I can't work out a way to do it, not really using spreadsheets much and having cut my teeth on Quattro Pro anyway.

Thanks.
Title: Re: Conditional printing from Excel
Post by: Steve on Oct 28, 2010, 17:20:26
We used to do that but have now progressed to an A5 piece of paper and a Biro. >:D
Title: Re: Conditional printing from Excel
Post by: Rik on Oct 28, 2010, 17:24:32
That's where I'm heading fast, Steve - though I prefer a roller-ball. :)
Title: Re: Conditional printing from Excel
Post by: zappaDPJ on Oct 28, 2010, 17:42:39
That's an interesting conundrum. The 'Hide' command under 'Cells' > 'Format' would probably stop the row being printed but that's messy. You could almost certainly write a macro to do it using an if/then/else loop or perhaps get my daughter to write a Visual Basic program to read the sheet and output the require list!

A macro would be the real answer. If you get stuck I might be able to knock one up.
Title: Re: Conditional printing from Excel
Post by: Rik on Oct 28, 2010, 17:47:07
Thanks, Zap. I'll have a dig around. This really should be so simple to implement. :)
Title: Re: Conditional printing from Excel
Post by: Steve on Oct 28, 2010, 17:57:21
http://exceltemplate.net/other/grocery-list/    maybe?
Title: Re: Conditional printing from Excel
Post by: Glenn on Oct 28, 2010, 18:02:28
That's no good, it's American, Rik needs a shopping list.  :evil:
Title: Re: Conditional printing from Excel
Post by: zappaDPJ on Oct 28, 2010, 18:02:56
Actually I think Conditional Formatting (under the Styles group) is possibly the way to do it (if Steve's suggestion doesn't work).
Title: Re: Conditional printing from Excel
Post by: Steve on Oct 28, 2010, 18:05:44
Mine's too complicated but the 'macros' maybe there?
Title: Re: Conditional printing from Excel
Post by: Rik on Oct 28, 2010, 18:06:25
Thanks, Steve, that may be the answer, provided I can modify it. :)
Title: Re: Conditional printing from Excel
Post by: Rik on Oct 28, 2010, 18:06:53
Quote from: zappaDPJ on Oct 28, 2010, 18:02:56
Actually I think Conditional Formatting (under the Styles group) is possibly the way to do it (if Steve's suggestion doesn't work).

Thanks, Zap, another route to consider.
Title: Re: Conditional printing from Excel
Post by: Simon on Oct 28, 2010, 19:31:46
For some reason, the things that seem as though they should be the simplest, are often the most difficult!
Title: Re: Conditional printing from Excel
Post by: pctech on Oct 28, 2010, 20:37:04
Story of my life  ;D
Title: Re: Conditional printing from Excel
Post by: Technical Ben on Oct 29, 2010, 09:55:50
Do what I did, and give up. I just manually delete rows, then restore to the original file the next week.
That's what I've done for my customer database. I was going to use Open offices version of Access. But it just did not work the way I wanted it to (address fields, auto population of dates ect), and my programming/macro skills are zero. So I've done it all by hand. :P
Title: Re: Conditional printing from Excel
Post by: Rik on Oct 29, 2010, 11:20:25
I may just do that, though Steve's template looks possible.