MrExcel Message Board

Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old Apr 7th, 2002, 03:58 PM   #1
Chris Davison
MrExcel MVP
 
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
Default

Evening all,

I've set up a dynamic named range which expands and contracts as rows and columns are added or deleted and called the range "test"

if I use "test" in the print range box of page setup it retains the original size of the range when it was entered....

ie when the range contracts, it still prints the blank rows, keeping the original reference A1:G400 rather than "=test"

am I missing something ? I want the print range to expand and contract accordingly.

many thanks
Chris
Chris Davison is offline   Reply With Quote
Old Apr 7th, 2002, 04:07 PM   #2
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default

Quote:
On 2002-04-07 14:58, Chris Davison wrote:
Evening all,

I've set up a dynamic named range which expands and contracts as rows and columns are added or deleted and called the range "test"

if I use "test" in the print range box of page setup it retains the original size of the range when it was entered....

ie when the range contracts, it still prints the blank rows, keeping the original reference A1:G400 rather than "=test"

am I missing something ? I want the print range to expand and contract accordingly.

many thanks
Chris
[img]/board/images/smiles/icon_smile.gif[/img]
Chris,

Can you indicate the current print range: Is it A1:G400? If so, File|Print Are|Set Print Area should simply work.

Aladin
Aladin Akyurek is offline   Reply With Quote
Old Apr 7th, 2002, 04:22 PM   #3
Chris Davison
MrExcel MVP
 
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
Default

thanks Aladin.... but no, that's what I thought also : I entered the print range as "=test" and later as "test" but it replaces this name with the actual range ie A1:G400 which doesn't change when the named range contracts...

weird
Chris Davison is offline   Reply With Quote
Old Apr 7th, 2002, 04:28 PM   #4
Mark W.
MrExcel MVP
 
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
Default

Quote:
On 2002-04-07 14:58, Chris Davison wrote:
Evening all,

I've set up a dynamic named range which expands and contracts as rows and columns are added or deleted and called the range "test"

if I use "test" in the print range box of page setup it retains the original size of the range when it was entered....

ie when the range contracts, it still prints the blank rows, keeping the original reference A1:G400 rather than "=test"

am I missing something ? I want the print range to expand and contract accordingly.

many thanks
Chris
[img]/board/images/smiles/icon_smile.gif[/img]
Define the name, Print_Area, using the same formula that "test" refers to.
Mark W. is offline   Reply With Quote
Old Apr 7th, 2002, 04:37 PM   #5
Chris Davison
MrExcel MVP
 
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
Default

guess what ?

it works !

thanks Mark, thanks Aladin

Chris Davison is offline   Reply With Quote
Old Apr 7th, 2002, 04:52 PM   #6
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default

Quote:
On 2002-04-07 15:37, Chris Davison wrote:
guess what ?

it works !

thanks Mark, thanks Aladin

[img]/board/images/smiles/icon_smile.gif[/img]
Not so fast.

If you activate File|Print Area|Set Print area and you select the area of interest by selecting column indicators A thru G, you'll have the same result as when you define Print_Area to refer to an OFFSET formula.

I remember to have proposed at the old board using an OFFSET formula as reference to the reserved name "Print_Area" and being corrected by a one-time visitor how unnecessary that move was. Whence my question.

Aladin

Aladin Akyurek is offline   Reply With Quote
Old Apr 7th, 2002, 05:08 PM   #7
Chris Davison
MrExcel MVP
 
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
Default

thanks Aladin,

if I add further info in columns H,I,J,K (row1), the print area doesn't update if I use your non-offset method, it's not dynamic; I'd have to update it manually.

(using the page break preview mode, you can actually see the ranges increase and decrease with the Print_Area = offset etc method)

are you saying someone advised you it was not necessary to use the offsetted print_area ? I'd say they were wrong, the file / print area / set print area is static, not dynamic...




edit - it updates if you *insert* into the range, but not if you augment by just including (ie typing or pasting) extra data into further columns

[ This Message was edited by: Chris Davison on 2002-04-07 16:15 ]
Chris Davison is offline   Reply With Quote
Old Apr 7th, 2002, 05:26 PM   #8
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default

Quote:
On 2002-04-07 16:08, Chris Davison wrote:
thanks Aladin,

if I add further info in columns H,I,J,K (row1), the print area doesn't update if I use your non-offset method, it's not dynamic; I'd have to update it manually.

(using the page break preview mode, you can actually see the ranges increase and decrease with the Print_Area = offset etc method)

are you saying someone advised you it was not necessary to use the offsetted print_area ? I'd say they were wrong, the file / print area / set print area is static, not dynamic...




edit - it updates if you *insert* into the range, but not if you augment by just including (ie typing or pasting) extra data into further columns

[ This Message was edited by: Chris Davison on 2002-04-07 16:15 ]
Rowwise it's dynamic, really. You have to select the range by using column selector. If your range is changing columnwise, select the range using row selector. That works too!

Aladin

[ This Message was edited by: Aladin Akyurek on 2002-04-07 16:37 ]
Aladin Akyurek is offline   Reply With Quote
Old Apr 7th, 2002, 05:58 PM   #9
Chris Davison
MrExcel MVP
 
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
Default

I'm not convinced the two methods are the same

I can only select by rows or by columns, but not both...... if I select by column to include all rows, my columns are static; if I select by rows to include all columns, my rows are static !

if I click on the top left "all", that's basically the deafult everything, not the same as, say, a print range defined by a dynamic named range (Print_Area)
Chris Davison is offline   Reply With Quote
Old Apr 7th, 2002, 06:06 PM   #10
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
Default

Quote:
On 2002-04-07 16:58, Chris Davison wrote:
I'm not convinced the two methods are the same [img]/board/images/smiles/icon_smile.gif[/img]

I can only select by rows or by columns, but not both...... if I select by column to include all rows, my columns are static; if I select by rows to include all columns, my rows are static !

if I click on the top left "all", that's basically the deafult everything, not the same as, say, a print range defined by a dynamic named range (Print_Area)
Hee, I'm not saying that both methods are eq. I didn't see your dyn range formula, so I just wanted to signal the easy way in case your situation might fit it.

Aladin Akyurek is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 05:40 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
All contents Copyright 1998-2012 by MrExcel Consulting.
diabetic desserts recipes recipes Diabetic Soups Holiday Pizza Recipes Popcorn Recipes Recipes For Microwave Pasta Recipes Casserole Recipes Chili Recipes Curry Recipes Crockpot Recipes Apples Recipes Bread Recipes Vegetarian Recipes Vegetable recipes Desserts Recipes Appetizers Ethnic Recipes Meat Dishes Barbecue Recipes Sauces Recipes Marinade Recipes Low Fat Recipes Frugal Gourmet Kitchen Classics Recipes On The Grill Cook Books Seafood Recipes Cajun Recipes Breads Low Fat Low Fat Breads Bread Machine Recipes Yeast Breads Quick Breads Fat Free Vegetarian Salad Recipes Eggplant Recipes Radish Recipes Tomato Recipes Jalapeno Recipes Potato Recipes Lettuce Recipes Cabbage Recipes Beans Ambrosia Recipes Biscotti Recipes Desserts Low Fat Cookie Recipes Cheesecake Recipes Cake Recipes Pie Recipes Muffin Recipes Custard Recipes Best Appetizers Appetizers Low Fat Salsa Recipes Dip Recipes International Recipes Afghan Recipes Alaska Recipes French Recipes German Recipes Greek Recipes Italian Recipes Spanish Recipes Thai Recipes Korean Recipes Chinese Recipes Mexican Recipes Indian Recipes Beef Recipes Pork Pork & Ham Pork Butts Pork Chop Recipes Pork Ribs Rulled Pork Poultry Recipes Stews Recipes Ground Beef Barbecue Grill Barbecue Smoker All Purpose Sauce BBQ Sauce Barbecue Sauce Carolina BBQ Sauce Pickle Recipes Marinades Smoking Low Fat Appetizers & Dips Low Fat Breakfast Low Fat Cakes Low Fat Cheesecakes Low Fat Cookies Low Fat Desserts Low Fat Fish & Seafood Low Fat Meats Low Fat Pasta Low Fat Pies Low Fat Salads Low Fat Sandwiches Low Fat Sauces & Condiments Low Fat Sides Low Fat Soups Low Fat Vegetarian Baker's Dozen Taste of Home Recipe Book Bon Appetit Cookbook Blacktie Cookbook Buster Cook Book Cookbook USA Cook Book Cook Book Sara's Cookbook Sara's Cookbook Appetizers and Dips Poultry recipes Diabetic recipes Holiday recipes Miscellaneous recipes 110 recipes 1986 Usenet cookbook 2900 recipes Cyberrealm recipes Great sysops of world Specialty recipes Ceideburg recipes Cheese recipes Chili recipes Fruits recipes Garlic recipes Great chefs of NY Londontowne recipes Raisins recipes Recipes for kids US Food Vegetarian recipes Bread recipes Drinks Meat Dishes Brisket recipes Caribou recipes Chicken recipes Filet mignons recipes Pork recipes Swordfish recipes Turkey recipes Pasta recipes Uncategorized recipes Ethnic recipes Canada recipes English recipes Ethiopia recipes Germany recipes Greece recipes Mexican recipes Philippines recipes Welsh recipes Microwave recipes Soups recipes Vegetable recipes Asparagus recipes Barley recipes Brown rice recipes Lentil recipes Mushrooms recipes Salads recipes Wild rice Desserts recipes Cakes recipes Chocolate recipes Cookies recipes Ice cream recipes