<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Printing Multiple Sheets</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2004/05/27/printing-multiple-sheets/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2004/05/27/printing-multiple-sheets/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Mon, 06 Feb 2012 18:39:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: HECTOR</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/05/27/printing-multiple-sheets/#comment-67195</link>
		<dc:creator>HECTOR</dc:creator>
		<pubDate>Fri, 21 Oct 2011 22:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=584#comment-67195</guid>
		<description>&lt;p&gt;hola para todos miren he creado un programa en base de formulas para algo aqui en colombia que se llama gota gota que son prestamos a corto tiempo tengo lobros con 110 clientes y un listado de cobro tambien con recibos pero en cada hoja tengo un recibo igual cada cliente es una hoja quiero una macro que selecione area de imprecion e imprima los 110 recibos ha y si tengo 60 clientes como hago aque el numero 61 no se imprima&lt;br&gt;
gracias por su aayuda&lt;/p&gt;
&lt;p&gt;hector&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>hola para todos miren he creado un programa en base de formulas para algo aqui en colombia que se llama gota gota que son prestamos a corto tiempo tengo lobros con 110 clientes y un listado de cobro tambien con recibos pero en cada hoja tengo un recibo igual cada cliente es una hoja quiero una macro que selecione area de imprecion e imprima los 110 recibos ha y si tengo 60 clientes como hago aque el numero 61 no se imprima<br />
gracias por su aayuda</p>
<p>hector</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chase yacko</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/05/27/printing-multiple-sheets/#comment-46554</link>
		<dc:creator>Chase yacko</dc:creator>
		<pubDate>Wed, 02 Jun 2010 20:13:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=584#comment-46554</guid>
		<description>&lt;p&gt;I was trying to print 35 pages of a spreadsheet through the click of a vba macro on the first page.  When I used the above code, it didn&#039;t work :( Im very new at this, but I think I typed it in correctly.  Could you explain why this wouldn&#039;t work?&lt;/p&gt;
&lt;p&gt;Sub PrintSheets()&lt;br&gt;
    Dim MyArray As Variant&lt;/p&gt;
&lt;p&gt;    MyArray = Array(&quot;Title Page&quot;, &quot;Summary&quot;, &quot;Balance Sheet&quot;, &quot;Bal Sht Desc&quot;, &quot;Asset vs. Sales Trends&quot;, &quot;Asset vs. Liab &amp; Equity Trends&quot;, &quot;Pct Bal Sht Desc&quot;, &quot;Pct Bal Sht&quot;, &quot;Current&quot;, &quot;Quick&quot;, &quot;Receivable turn&quot;, &quot;Inventory turn&quot;, &quot;Payable turn&quot;, &quot;Sales Fixed Assets&quot;, &quot;Sales Total Assets&quot;, &quot;Debt to Worth&quot;, &quot;Income Statemtent&quot;, &quot;P&amp;L Trends&quot;, &quot;EBITDA Trend&quot;, &quot;Pct P&amp;L Desc&quot;, &quot;Pct P&amp;L&quot;, &quot;Depreciation as a &amp; of Sales&quot;,&lt;br&gt;
&quot;% Profit Assets&quot;, &quot;%Profit Net Worth&quot;, &quot;Times Interest Earned&quot;, &quot;Funded Debt to EBITDA&quot;, &quot;Cumulative Growth Rate&quot;, &quot;Cash Flow Statement&quot;, &quot;Cash Flow Desc&quot;, &quot;Cash Flow&quot;, &quot;Sales Working Capital&quot;, &quot;Debt Service Coverage&quot;, &quot;Z score&quot;, &quot;EM Score new&quot;, &quot;Conclusion&quot;)&lt;/p&gt;
&lt;p&gt;    ThisWorkbook.Sheets(MyArray).PrintOut&lt;/p&gt;
&lt;p&gt;End Sub&lt;/p&gt;
&lt;p&gt;I look forward to your response, by the way these titles are the titles of each sheet I would like to print. Is this wrong?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I was trying to print 35 pages of a spreadsheet through the click of a vba macro on the first page.  When I used the above code, it didn&#8217;t work <img src='http://www.dailydoseofexcel.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  Im very new at this, but I think I typed it in correctly.  Could you explain why this wouldn&#8217;t work?</p>
<p>Sub PrintSheets()<br />
    Dim MyArray As Variant</p>
<p>    MyArray = Array(&#8220;Title Page&#8221;, &#8220;Summary&#8221;, &#8220;Balance Sheet&#8221;, &#8220;Bal Sht Desc&#8221;, &#8220;Asset vs. Sales Trends&#8221;, &#8220;Asset vs. Liab &amp; Equity Trends&#8221;, &#8220;Pct Bal Sht Desc&#8221;, &#8220;Pct Bal Sht&#8221;, &#8220;Current&#8221;, &#8220;Quick&#8221;, &#8220;Receivable turn&#8221;, &#8220;Inventory turn&#8221;, &#8220;Payable turn&#8221;, &#8220;Sales Fixed Assets&#8221;, &#8220;Sales Total Assets&#8221;, &#8220;Debt to Worth&#8221;, &#8220;Income Statemtent&#8221;, &#8220;P&amp;L Trends&#8221;, &#8220;EBITDA Trend&#8221;, &#8220;Pct P&amp;L Desc&#8221;, &#8220;Pct P&amp;L&#8221;, &#8220;Depreciation as a &amp; of Sales&#8221;,<br />
&#8220;% Profit Assets&#8221;, &#8220;%Profit Net Worth&#8221;, &#8220;Times Interest Earned&#8221;, &#8220;Funded Debt to EBITDA&#8221;, &#8220;Cumulative Growth Rate&#8221;, &#8220;Cash Flow Statement&#8221;, &#8220;Cash Flow Desc&#8221;, &#8220;Cash Flow&#8221;, &#8220;Sales Working Capital&#8221;, &#8220;Debt Service Coverage&#8221;, &#8220;Z score&#8221;, &#8220;EM Score new&#8221;, &#8220;Conclusion&#8221;)</p>
<p>    ThisWorkbook.Sheets(MyArray).PrintOut</p>
<p>End Sub</p>
<p>I look forward to your response, by the way these titles are the titles of each sheet I would like to print. Is this wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: millawitch</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/05/27/printing-multiple-sheets/#comment-43568</link>
		<dc:creator>millawitch</dc:creator>
		<pubDate>Fri, 29 Jan 2010 00:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=584#comment-43568</guid>
		<description>&lt;p&gt;REDIRECT SELECTION IN CELL TO PRINT JOB&lt;/p&gt;
&lt;p&gt;In spreadsheet_1 I&#039;m creating several cells which contain drop-down menus so the user can select values from other spreadsheets in the same workbook (Excel 2003). &lt;/p&gt;
&lt;p&gt;My issue is:&lt;/p&gt;
&lt;p&gt;I would like the user to, once all data is selected, be able to print automatically the spreadsheet_1 AND all the spreadsheets selected in those cells with the drop-down menu when he selects print... Is it possible?&lt;/p&gt;
&lt;p&gt;I&#039;m new to programming and VBA, but I&#039;m keen to learn!&lt;/p&gt;
&lt;p&gt;Thanks in advance!&lt;/p&gt;
&lt;p&gt;millawitch&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>REDIRECT SELECTION IN CELL TO PRINT JOB</p>
<p>In spreadsheet_1 I&#8217;m creating several cells which contain drop-down menus so the user can select values from other spreadsheets in the same workbook (Excel 2003). </p>
<p>My issue is:</p>
<p>I would like the user to, once all data is selected, be able to print automatically the spreadsheet_1 AND all the spreadsheets selected in those cells with the drop-down menu when he selects print&#8230; Is it possible?</p>
<p>I&#8217;m new to programming and VBA, but I&#8217;m keen to learn!</p>
<p>Thanks in advance!</p>
<p>millawitch</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rebecca Morrison</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/05/27/printing-multiple-sheets/#comment-41872</link>
		<dc:creator>Rebecca Morrison</dc:creator>
		<pubDate>Wed, 28 Oct 2009 15:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=584#comment-41872</guid>
		<description>&lt;p&gt;I have the following code to print a calendar by day.  It&#039;s done in a template in one worksheet.  As such, each loop produces one print job for each calendar day.  I want to do duplex printing. How do I structure the codes so that all 366 days can be printed in one print job.  &lt;/p&gt;
&lt;p&gt;Many thanks&lt;br&gt;
Rebecca&lt;/p&gt;
&lt;div style=&quot;overflow: auto; white-space: nowrap;&quot; class=&quot;codecolorer-container vb default&quot;&gt;&lt;div style=&quot;white-space: nowrap;&quot; class=&quot;vb codecolorer&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;Sub&lt;/span&gt; Calendar()&lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; i &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Integer&lt;/span&gt;&lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;For&lt;/span&gt; i = 0 &lt;span class=&quot;kw1&quot;&gt;To&lt;/span&gt; 365&lt;br&gt;
&#160; &#160; &#160; &#160; Range(&lt;span class=&quot;st0&quot;&gt;&quot;I1&quot;&lt;/span&gt;) = DateAdd(&lt;span class=&quot;st0&quot;&gt;&quot;d&quot;&lt;/span&gt;, i, &lt;span class=&quot;st0&quot;&gt;&quot;1/1/2010&quot;&lt;/span&gt;)&lt;br&gt;
&#160; &#160; &#160; &#160; ActiveSheet.PrintOut&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Next&lt;/span&gt; i&lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Sub&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
</description>
		<content:encoded><![CDATA[<p>I have the following code to print a calendar by day.  It&#8217;s done in a template in one worksheet.  As such, each loop produces one print job for each calendar day.  I want to do duplex printing. How do I structure the codes so that all 366 days can be printed in one print job.  </p>
<p>Many thanks<br />
Rebecca</p>
<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container vb default">
<div style="white-space: nowrap;" class="vb codecolorer"><span class="kw1">Sub</span> Calendar()<br />
<span class="kw1">Dim</span> i <span class="kw1">As</span> <span class="kw1">Integer</span><br />
<span class="kw1">For</span> i = 0 <span class="kw1">To</span> 365<br />
&nbsp; &nbsp; &nbsp; &nbsp; Range(<span class="st0">&#8220;I1&#8243;</span>) = DateAdd(<span class="st0">&#8220;d&#8221;</span>, i, <span class="st0">&#8220;1/1/2010&#8243;</span>)<br />
&nbsp; &nbsp; &nbsp; &nbsp; ActiveSheet.PrintOut<br />
&nbsp; &nbsp; <span class="kw1">Next</span> i<br />
<span class="kw1">End</span> <span class="kw1">Sub</span></div>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim Swindle</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/05/27/printing-multiple-sheets/#comment-41008</link>
		<dc:creator>Jim Swindle</dc:creator>
		<pubDate>Tue, 15 Sep 2009 18:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=584#comment-41008</guid>
		<description>&lt;p&gt;Note to Osama: If you&#039;re using the same workbook every time you print, I think you could create a macro to do the following:&lt;br&gt;
1. Select all but the last sheet&lt;br&gt;
2. Print&lt;br&gt;
3. Select a single sheet (so that you won&#039;t accidentally edit all sheets at once)&lt;/p&gt;
&lt;p&gt;Then you could assign that macro to a macro button.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Note to Osama: If you&#8217;re using the same workbook every time you print, I think you could create a macro to do the following:<br />
1. Select all but the last sheet<br />
2. Print<br />
3. Select a single sheet (so that you won&#8217;t accidentally edit all sheets at once)</p>
<p>Then you could assign that macro to a macro button.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gusman</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/05/27/printing-multiple-sheets/#comment-38409</link>
		<dc:creator>Gusman</dc:creator>
		<pubDate>Wed, 11 Mar 2009 11:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=584#comment-38409</guid>
		<description>&lt;p&gt;Thank you so much, very helpful!&lt;/p&gt;
&lt;p&gt;I used the first version.&lt;/p&gt;
&lt;p&gt;Gusman&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thank you so much, very helpful!</p>
<p>I used the first version.</p>
<p>Gusman</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Osama</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/05/27/printing-multiple-sheets/#comment-37425</link>
		<dc:creator>Osama</dc:creator>
		<pubDate>Wed, 21 Jan 2009 09:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=584#comment-37425</guid>
		<description>&lt;p&gt;Im using MS EXCEL.&lt;br&gt;
I prepared suppose 5 sheet.&lt;br&gt;
Sheet 1&lt;br&gt;
Sheet 2&lt;br&gt;
Sheet 3&lt;br&gt;
Sheet 4&lt;br&gt;
Sheet 5&lt;/p&gt;
&lt;p&gt;i want to get printout of Sheet 1,2,3,4,&lt;br&gt;
How it works&lt;br&gt;
How can i get printout of that sheets by using (only 1) button or one command&lt;/p&gt;
&lt;p&gt;Can i any body guide me.&lt;br&gt;
I m thankful to.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Im using MS EXCEL.<br />
I prepared suppose 5 sheet.<br />
Sheet 1<br />
Sheet 2<br />
Sheet 3<br />
Sheet 4<br />
Sheet 5</p>
<p>i want to get printout of Sheet 1,2,3,4,<br />
How it works<br />
How can i get printout of that sheets by using (only 1) button or one command</p>
<p>Can i any body guide me.<br />
I m thankful to.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Osama</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/05/27/printing-multiple-sheets/#comment-37426</link>
		<dc:creator>Osama</dc:creator>
		<pubDate>Wed, 21 Jan 2009 09:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=584#comment-37426</guid>
		<description>&lt;p&gt;Im using MS EXCEL.&lt;br&gt;
I prepared suppose 5 sheet.&lt;br&gt;
Sheet 1&lt;br&gt;
Sheet 2&lt;br&gt;
Sheet 3&lt;br&gt;
Sheet 4&lt;br&gt;
Sheet 5&lt;/p&gt;
&lt;p&gt;i want to get printout of Sheet 1,2,3,4,  ( i don&#039;t want to get printoout of Sheet 5)&lt;br&gt;
How it works&lt;br&gt;
How can i get printout of that sheets by using (only 1) button or one command&lt;/p&gt;
&lt;p&gt;Can i any body guide me.&lt;br&gt;
I m thankful to.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Im using MS EXCEL.<br />
I prepared suppose 5 sheet.<br />
Sheet 1<br />
Sheet 2<br />
Sheet 3<br />
Sheet 4<br />
Sheet 5</p>
<p>i want to get printout of Sheet 1,2,3,4,  ( i don&#8217;t want to get printoout of Sheet 5)<br />
How it works<br />
How can i get printout of that sheets by using (only 1) button or one command</p>
<p>Can i any body guide me.<br />
I m thankful to.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/05/27/printing-multiple-sheets/#comment-36033</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Wed, 12 Nov 2008 14:14:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=584#comment-36033</guid>
		<description>&lt;p&gt;Hi,&lt;br&gt;
I love your blog and all the great relevant information I can found in it about Excel and VBA.&lt;br&gt;
In order to &quot;save&quot; some paper I made a custom Macro Printing 4 Pages (selecting the print area from each page) in 1 Pages. The code is working for a Workbook with up to 24 pages:&lt;/p&gt;
&lt;p&gt;Sub Print4To1()&lt;/p&gt;
&lt;p&gt;    On Error Resume Next&lt;br&gt;
    Application.ScreenUpdating = False&lt;br&gt;
    Application.DisplayAlerts = False&lt;br&gt;
    Sheets(&quot;PrintView&quot;).Delete&lt;br&gt;
    Application.DisplayAlerts = True&lt;br&gt;
   &#039;Add a worksheet with the name &quot;PrintView&quot;&lt;br&gt;
    Set Basebook = ThisWorkbook&lt;br&gt;
    ActiveWorkbook.Worksheets.Add after:=Worksheets(Sheets.Count)&lt;br&gt;
    Worksheets(Sheets.Count).Name = &quot;PrintView&quot;&lt;/p&gt;
&lt;p&gt;    RowANbr = 1&lt;br&gt;
    RowBNbr = 1&lt;br&gt;
    ColANbr = 1&lt;br&gt;
    ColBNbr = 1&lt;/p&gt;
&lt;p&gt;    TotalSheet = ThisWorkbook.Worksheets.Count - 1&lt;/p&gt;
&lt;p&gt;    For i = 1 To TotalSheet - 1&lt;br&gt;
        Sheets(i).Select&lt;br&gt;
        myrange = Sheets(i).PageSetup.PrintArea&lt;br&gt;
        MyRangeRowNbr = Range(myrange).Rows.Count&lt;br&gt;
        MyRangeColNbr = Range(myrange).Columns.Count&lt;br&gt;
        Range(myrange).Copy&lt;br&gt;
        If i = 1 Then&lt;br&gt;
            Sheets(&quot;PrintView&quot;).Select&lt;br&gt;
            Cells(RowANbr, 1).Select&lt;br&gt;
            Sheets(&quot;PrintView&quot;).Pictures.Paste(Link:=True).Select&lt;/p&gt;
&lt;p&gt;            For k = 1 To MyRangeRowNbr&lt;br&gt;
                Sheets(&quot;PrintView&quot;).Cells(k, 1).RowHeight = Sheets(i).Cells(k, 1).RowHeight&lt;br&gt;
            Next k&lt;br&gt;
            For k = 1 To MyRangeColNbr&lt;br&gt;
                Sheets(&quot;PrintView&quot;).Cells(1, k).ColumnWidth = Sheets(i).Cells(1, k).ColumnWidth&lt;br&gt;
            Next k&lt;br&gt;
            &#039;---- Save Ligne  and column where Sheet 1 stop stop in preview sheet&lt;br&gt;
            RowANbr = RowANbr + MyRangeRowNbr + 2&lt;br&gt;
            ColANbr = ColANbr + MyRangeColNbr + 1&lt;br&gt;
        Else&lt;br&gt;
            If xIsEven(i) = True Then&lt;br&gt;
                Sheets(&quot;PrintView&quot;).Select&lt;br&gt;
                If RowBNbr  TotalRowB Then&lt;br&gt;
        TotalRow = TotalRowA&lt;br&gt;
    Else&lt;br&gt;
        TotalRow = TotalRowB&lt;br&gt;
    End If&lt;/p&gt;
&lt;p&gt;        Sheets(&quot;PrintView&quot;).Activate&lt;br&gt;
        ActiveWindow.View = xlPageBreakPreview&lt;br&gt;
        Sheets(&quot;PrintView&quot;).DisplayAutomaticPageBreaks = True&lt;/p&gt;
&lt;p&gt;    With Sheets(&quot;PrintView&quot;).PageSetup&lt;br&gt;
        .PrintArea = Range(Cells(1, 1), Cells(TotalRow - 1, TotalCol - 1)).Address&lt;br&gt;
   &#039;     Range(Cells(1, 1), Cells(TotalRow, TotalCol))&lt;br&gt;
        .PrintTitleRows = &quot;&quot;&lt;br&gt;
        .PrintTitleColumns = &quot;&quot;&lt;br&gt;
        .LeftMargin = Application.InchesToPoints(0.196850393700787)&lt;br&gt;
        .RightMargin = Application.InchesToPoints(0.196850393700787)&lt;br&gt;
        .TopMargin = Application.InchesToPoints(0.196850393700787)&lt;br&gt;
        .BottomMargin = Application.InchesToPoints(0.196850393700787)&lt;br&gt;
        .HeaderMargin = Application.InchesToPoints(0)&lt;br&gt;
        .FooterMargin = Application.InchesToPoints(0)&lt;br&gt;
        .PrintHeadings = False&lt;br&gt;
        .PrintGridlines = False&lt;br&gt;
        .PrintComments = xlPrintNoComments&lt;br&gt;
       &#039; .PrintQuality = 300&lt;br&gt;
        .CenterHorizontally = True&lt;br&gt;
        .CenterVertically = True&lt;br&gt;
        .Orientation = xlPortrait&lt;br&gt;
        .Draft = False&lt;br&gt;
        .PaperSize = xlPaperA4&lt;br&gt;
        .FirstPageNumber = xlAutomatic&lt;br&gt;
        .Order = xlDownThenOver&lt;br&gt;
        .BlackAndWhite = False&lt;br&gt;
        .Zoom = False&lt;br&gt;
        .FitToPagesWide = 1&lt;br&gt;
        .FitToPagesTall = i&lt;br&gt;
        .PrintErrors = xlPrintErrorsDisplayed&lt;br&gt;
    End With&lt;/p&gt;
&lt;p&gt;    For NbrDePage = 1 To (i - 1)&lt;br&gt;
        j = 1&lt;br&gt;
        myrange1 = Sheets(j * NbrDePage).PageSetup.PrintArea&lt;br&gt;
        TotalRow1 = Range(myrange1).Rows.Count&lt;br&gt;
        myrange2 = Sheets(j * NbrDePage + 2).PageSetup.PrintArea&lt;br&gt;
        TotalRow2 = Range(myrange2).Rows.Count&lt;br&gt;
        myrange3 = Sheets(j * NbrDePage + 1).PageSetup.PrintArea&lt;br&gt;
        TotalRow3 = Range(myrange3).Rows.Count&lt;br&gt;
        myrange4 = Sheets(j * NbrDePage + 3).PageSetup.PrintArea&lt;br&gt;
        TotalRow4 = Range(myrange4).Rows.Count&lt;br&gt;
        TotalRowPageOdd = TotalRow1 + TotalRow2&lt;br&gt;
        TotalRowPageEven = TotalRow3 + TotalRow4&lt;br&gt;
        If TotalRowPageOdd&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I love your blog and all the great relevant information I can found in it about Excel and VBA.<br />
In order to &#8220;save&#8221; some paper I made a custom Macro Printing 4 Pages (selecting the print area from each page) in 1 Pages. The code is working for a Workbook with up to 24 pages:</p>
<p>Sub Print4To1()</p>
<p>    On Error Resume Next<br />
    Application.ScreenUpdating = False<br />
    Application.DisplayAlerts = False<br />
    Sheets(&#8220;PrintView&#8221;).Delete<br />
    Application.DisplayAlerts = True<br />
   &#8216;Add a worksheet with the name &#8220;PrintView&#8221;<br />
    Set Basebook = ThisWorkbook<br />
    ActiveWorkbook.Worksheets.Add after:=Worksheets(Sheets.Count)<br />
    Worksheets(Sheets.Count).Name = &#8220;PrintView&#8221;</p>
<p>    RowANbr = 1<br />
    RowBNbr = 1<br />
    ColANbr = 1<br />
    ColBNbr = 1</p>
<p>    TotalSheet = ThisWorkbook.Worksheets.Count &#8211; 1</p>
<p>    For i = 1 To TotalSheet &#8211; 1<br />
        Sheets(i).Select<br />
        myrange = Sheets(i).PageSetup.PrintArea<br />
        MyRangeRowNbr = Range(myrange).Rows.Count<br />
        MyRangeColNbr = Range(myrange).Columns.Count<br />
        Range(myrange).Copy<br />
        If i = 1 Then<br />
            Sheets(&#8220;PrintView&#8221;).Select<br />
            Cells(RowANbr, 1).Select<br />
            Sheets(&#8220;PrintView&#8221;).Pictures.Paste(Link:=True).Select</p>
<p>            For k = 1 To MyRangeRowNbr<br />
                Sheets(&#8220;PrintView&#8221;).Cells(k, 1).RowHeight = Sheets(i).Cells(k, 1).RowHeight<br />
            Next k<br />
            For k = 1 To MyRangeColNbr<br />
                Sheets(&#8220;PrintView&#8221;).Cells(1, k).ColumnWidth = Sheets(i).Cells(1, k).ColumnWidth<br />
            Next k<br />
            &#8216;&#8212;- Save Ligne  and column where Sheet 1 stop stop in preview sheet<br />
            RowANbr = RowANbr + MyRangeRowNbr + 2<br />
            ColANbr = ColANbr + MyRangeColNbr + 1<br />
        Else<br />
            If xIsEven(i) = True Then<br />
                Sheets(&#8220;PrintView&#8221;).Select<br />
                If RowBNbr  TotalRowB Then<br />
        TotalRow = TotalRowA<br />
    Else<br />
        TotalRow = TotalRowB<br />
    End If</p>
<p>        Sheets(&#8220;PrintView&#8221;).Activate<br />
        ActiveWindow.View = xlPageBreakPreview<br />
        Sheets(&#8220;PrintView&#8221;).DisplayAutomaticPageBreaks = True</p>
<p>    With Sheets(&#8220;PrintView&#8221;).PageSetup<br />
        .PrintArea = Range(Cells(1, 1), Cells(TotalRow &#8211; 1, TotalCol &#8211; 1)).Address<br />
   &#8216;     Range(Cells(1, 1), Cells(TotalRow, TotalCol))<br />
        .PrintTitleRows = &#8220;&#8221;<br />
        .PrintTitleColumns = &#8220;&#8221;<br />
        .LeftMargin = Application.InchesToPoints(0.196850393700787)<br />
        .RightMargin = Application.InchesToPoints(0.196850393700787)<br />
        .TopMargin = Application.InchesToPoints(0.196850393700787)<br />
        .BottomMargin = Application.InchesToPoints(0.196850393700787)<br />
        .HeaderMargin = Application.InchesToPoints(0)<br />
        .FooterMargin = Application.InchesToPoints(0)<br />
        .PrintHeadings = False<br />
        .PrintGridlines = False<br />
        .PrintComments = xlPrintNoComments<br />
       &#8216; .PrintQuality = 300<br />
        .CenterHorizontally = True<br />
        .CenterVertically = True<br />
        .Orientation = xlPortrait<br />
        .Draft = False<br />
        .PaperSize = xlPaperA4<br />
        .FirstPageNumber = xlAutomatic<br />
        .Order = xlDownThenOver<br />
        .BlackAndWhite = False<br />
        .Zoom = False<br />
        .FitToPagesWide = 1<br />
        .FitToPagesTall = i<br />
        .PrintErrors = xlPrintErrorsDisplayed<br />
    End With</p>
<p>    For NbrDePage = 1 To (i &#8211; 1)<br />
        j = 1<br />
        myrange1 = Sheets(j * NbrDePage).PageSetup.PrintArea<br />
        TotalRow1 = Range(myrange1).Rows.Count<br />
        myrange2 = Sheets(j * NbrDePage + 2).PageSetup.PrintArea<br />
        TotalRow2 = Range(myrange2).Rows.Count<br />
        myrange3 = Sheets(j * NbrDePage + 1).PageSetup.PrintArea<br />
        TotalRow3 = Range(myrange3).Rows.Count<br />
        myrange4 = Sheets(j * NbrDePage + 3).PageSetup.PrintArea<br />
        TotalRow4 = Range(myrange4).Rows.Count<br />
        TotalRowPageOdd = TotalRow1 + TotalRow2<br />
        TotalRowPageEven = TotalRow3 + TotalRow4<br />
        If TotalRowPageOdd</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ProblemInProvo</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/05/27/printing-multiple-sheets/#comment-25560</link>
		<dc:creator>ProblemInProvo</dc:creator>
		<pubDate>Fri, 13 Jul 2007 20:43:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=584#comment-25560</guid>
		<description>&lt;p&gt;Did SleeplessInSomerset ever get an answer? I&#039;m having the exact same problem. I&#039;ve created a dynamic string that I want to pass into an Array so that I can print a number of worksheets at once. But the Array always barfs. What should I be generating with my If Thens?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Did SleeplessInSomerset ever get an answer? I&#8217;m having the exact same problem. I&#8217;ve created a dynamic string that I want to pass into an Array so that I can print a number of worksheets at once. But the Array always barfs. What should I be generating with my If Thens?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

