![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
|
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 |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
Can you indicate the current print range: Is it A1:G400? If so, File|Print Are|Set Print Area should simply work. Aladin |
|
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
|
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 |
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Quote:
|
|
|
|
|
|
|
#5 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
|
guess what ?
it works ! thanks Mark, thanks Aladin |
|
|
|
|
|
#6 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
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 |
|
|
|
|
|
|
#7 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
|
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 ] |
|
|
|
|
|
#8 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
Aladin [ This Message was edited by: Aladin Akyurek on 2002-04-07 16:37 ] |
|
|
|
|
|
|
#9 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
|
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) |
|
|
|
|
|
#10 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
|
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|