Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Hiding named ranges before printing

That's the way I'd approach it.

But another alternative is to use a cell (outside the printrange). Then you
could use format|conditional formatting to change the colors.

Select all the areas
format|conditional formatting
formula is: =$x$99="hide"
and give it the hidden format.

Then you could have your print code just put "hide" in that cell, do the print,
and clearcontents of that cell.

PO wrote:

Excel 2003, sp2

Hi,

I have several named ranges in a worksheet. The user is supposed to enter
values into some of them to be used in various formulas. The cells are
formated with interior colors, borders and bold font for clarity.

I don't want the values in the named ranges to be printed though.
The printout macro I use therefore loops through the names collection and
changes the cells which are used for user-criteria interior and text color
to 16777215 (white) and changes them back after the print.

Is there a better, more direct, way to do this i.e.
ThisWorkbook.Names("Margin").[dontprintme]?

Regards
Pete


--

Dave Peterson
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
Hiding Named ranges PO Excel Programming 1 November 15th 07 02:29 PM
Hiding named ranges depending on a cell value Ctech[_109_] Excel Programming 3 March 20th 06 11:07 AM
Hiding Named Ranges Matt Connor Excel Programming 12 February 17th 04 09:00 AM
Printing a list of all named ranges Joe Smith Excel Programming 3 October 2nd 03 08:21 PM


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