#1   Report Post  
Old July 7th 08, 10:04 PM posted to microsoft.public.excel.misc,microsoft.public.excel.setup
external usenet poster
 
First recorded activity by ExcelBanter: Aug 2006
Posts: 19
Default Print range

I want to create a worksheet so that when I click Print, Excel will
automatically print the area defined a top left cell that contains a
particular value in a specified column and the lower right cell is a
manually defined offset from the top left.

In particular, the top left value is to be =TODAY() looked up in a column of
sorted dates, and the offset coordinates will entered in a cell(s) on the
worksheet

Many thanks

Lawman



  #2   Report Post  
Old July 7th 08, 10:31 PM posted to microsoft.public.excel.misc,microsoft.public.excel.setup
external usenet poster
 
First recorded activity by ExcelBanter: Jun 2008
Posts: 1,358
Default Print range

Assumptions: Sheet name = Sheet1, column with date = A, cell with how many
rows deep you want printed = cell G1, total columns worth of data is 6.

First, randomly select some cells and set as print area (this is just to
ensure print area will be defined correctly). Then go to
Insert--Name--Define, highlight the Print_Area, and in the refer to box,
type the following formula:

=OFFSET(Sheet1!$A$1,MATCH(TODAY(),Sheet1!$A:$A,1), 0,Sheet1!$G$1,6)

Hope this helps!
--
John C


"Lawman" wrote:

I want to create a worksheet so that when I click Print, Excel will
automatically print the area defined a top left cell that contains a
particular value in a specified column and the lower right cell is a
manually defined offset from the top left.

In particular, the top left value is to be =TODAY() looked up in a column of
sorted dates, and the offset coordinates will entered in a cell(s) on the
worksheet

Many thanks

Lawman



  #3   Report Post  
Old July 7th 08, 11:44 PM posted to microsoft.public.excel.misc,microsoft.public.excel.setup
external usenet poster
 
First recorded activity by ExcelBanter: Aug 2006
Posts: 19
Default Print range

Helps? Ideal!

Thanks John

Lawman


"John C" <[email protected] wrote in message
...
| Assumptions: Sheet name = Sheet1, column with date = A, cell with how many
| rows deep you want printed = cell G1, total columns worth of data is 6.
|
| First, randomly select some cells and set as print area (this is just to
| ensure print area will be defined correctly). Then go to
| Insert--Name--Define, highlight the Print_Area, and in the refer to box,
| type the following formula:
|
| =OFFSET(Sheet1!$A$1,MATCH(TODAY(),Sheet1!$A:$A,1), 0,Sheet1!$G$1,6)
|
| Hope this helps!
| --
| John C
|
|
| "Lawman" wrote:
|
| I want to create a worksheet so that when I click Print, Excel will
| automatically print the area defined a top left cell that contains a
| particular value in a specified column and the lower right cell is a
| manually defined offset from the top left.
|
| In particular, the top left value is to be =TODAY() looked up in a
column of
| sorted dates, and the offset coordinates will entered in a cell(s) on
the
| worksheet
|
| Many thanks
|
| Lawman
|
|
|
|


  #4   Report Post  
Old July 8th 08, 01:50 PM posted to microsoft.public.excel.misc,microsoft.public.excel.setup
external usenet poster
 
First recorded activity by ExcelBanter: Jun 2008
Posts: 1,358
Default Print range

One thing to be aware of, if you ever change the parameters of the worksheet,
such as margin, number of rows to print at top, your sheet MAY remove the
offset and hardcode what was last printed. Just be aware.

Also, if question was answered, be sure to check it, thank you!
--
John C


"Lawman" wrote:

Helps? Ideal!

Thanks John

Lawman


"John C" <[email protected] wrote in message
...
| Assumptions: Sheet name = Sheet1, column with date = A, cell with how many
| rows deep you want printed = cell G1, total columns worth of data is 6.
|
| First, randomly select some cells and set as print area (this is just to
| ensure print area will be defined correctly). Then go to
| Insert--Name--Define, highlight the Print_Area, and in the refer to box,
| type the following formula:
|
| =OFFSET(Sheet1!$A$1,MATCH(TODAY(),Sheet1!$A:$A,1), 0,Sheet1!$G$1,6)
|
| Hope this helps!
| --
| John C
|
|
| "Lawman" wrote:
|
| I want to create a worksheet so that when I click Print, Excel will
| automatically print the area defined a top left cell that contains a
| particular value in a specified column and the lower right cell is a
| manually defined offset from the top left.
|
| In particular, the top left value is to be =TODAY() looked up in a
column of
| sorted dates, and the offset coordinates will entered in a cell(s) on
the
| worksheet
|
| Many thanks
|
| Lawman
|
|
|
|





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
Print range Lawman Excel Discussion (Misc queries) 3 July 8th 08 01:50 PM
Print Range Trish Excel Discussion (Misc queries) 2 October 31st 07 06:51 AM
Print Range MikieSlats Setting up and Configuration of Excel 0 September 28th 07 08:46 AM
Print Blank Pgs - Preview margins outside print range dsm Excel Discussion (Misc queries) 0 October 25th 06 06:17 PM
Print Range waynehamilton Excel Worksheet Functions 1 May 13th 05 09:54 AM


All times are GMT +1. The time now is 08:45 PM.

Powered by vBulletin® Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright 2004-2019 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"

 

Copyright © 2017