Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default Is cell outside printable area?

It there a way to check if a cell is outside the printable area?

Say, if the user set the printable area to columns A to G, and the macro
find a value in a cell in column H.

I would then like to mark that cell with a different background color - but
only cells outside the printable area, which has contents.


TIA,



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default Is cell outside printable area?

Charlotte E pretended :
It there a way to check if a cell is outside the printable area?

Say, if the user set the printable area to columns A to G, and the macro find
a value in a cell in column H.

I would then like to mark that cell with a different background color - but
only cells outside the printable area, which has contents.


TIA,


Try looking at the Intersect() function:

<air code
If Not Intersect(cell, Range("Print_Area") Then 'shade it

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 277
Default Is cell outside printable area?

On Fri, 3 Sep 2010 21:08:03 +0200, "Charlotte E" wrote:

It there a way to check if a cell is outside the printable area?

Say, if the user set the printable area to columns A to G, and the macro
find a value in a cell in column H.

I would then like to mark that cell with a different background color - but
only cells outside the printable area, which has contents.


TIA,


Go up in the upper left portion (the left edge) of the formula bar
where the cell name or named range appears, and type in "Print_Area".
When you enter a named range in that box, the screen jumps to that range.
The current print area is always named that, so... type it in.
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 277
Default Is cell outside printable area?

On Fri, 03 Sep 2010 15:13:06 -0400, GS wrote:

Charlotte E pretended :
It there a way to check if a cell is outside the printable area?

Say, if the user set the printable area to columns A to G, and the macro find
a value in a cell in column H.

I would then like to mark that cell with a different background color - but
only cells outside the printable area, which has contents.


TIA,


Try looking at the Intersect() function:

<air code
If Not Intersect(cell, Range("Print_Area") Then 'shade it




Cool. I see lots of possibilities with that function.
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
Copying printable area BarbDCG Excel Worksheet Functions 1 October 15th 08 01:15 AM
how can i extend the printable area up to the very last row kaveh Setting up and Configuration of Excel 8 August 11th 08 04:42 PM
printable area size Boba Excel Programming 1 July 3rd 07 05:15 AM
Set Printable area to skip columns slinger Excel Discussion (Misc queries) 2 October 26th 06 06:49 PM


All times are GMT +1. The time now is 04:51 AM.

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"