<?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: Setting the Print Area with VBA</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2004/05/21/setting-the-print-area-with-vba/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2004/05/21/setting-the-print-area-with-vba/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Thu, 09 Feb 2012 23:42:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Jarbas</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/05/21/setting-the-print-area-with-vba/#comment-62263</link>
		<dc:creator>Jarbas</dc:creator>
		<pubDate>Wed, 20 Apr 2011 13:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=563#comment-62263</guid>
		<description>&lt;p&gt;Olá pessoal,&lt;/p&gt;
&lt;p&gt;Estou construindo um código e preciso imprimir as páginas de cada planilha selecionada em uma caixa de listagem, mas somente SE determinado intervalo de células estiver diferente de vazio ( &quot;&quot;). Consigui carregar a listbox, consegui selecionar a planilha, resta agora imprimir, SE e somente SE determinado intervalo de células (Range) em cada uma das 19 páginas estiver DIFERENTE DE VAZIO ( &quot;&quot;). Já quebrei a cabeça tentando mas não consegui até agora.&lt;/p&gt;
&lt;p&gt;Peço ajuda de vc&#039;s.&lt;/p&gt;
&lt;p&gt;Jarbas&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Olá pessoal,</p>
<p>Estou construindo um código e preciso imprimir as páginas de cada planilha selecionada em uma caixa de listagem, mas somente SE determinado intervalo de células estiver diferente de vazio ( &#8220;&#8221;). Consigui carregar a listbox, consegui selecionar a planilha, resta agora imprimir, SE e somente SE determinado intervalo de células (Range) em cada uma das 19 páginas estiver DIFERENTE DE VAZIO ( &#8220;&#8221;). Já quebrei a cabeça tentando mas não consegui até agora.</p>
<p>Peço ajuda de vc&#8217;s.</p>
<p>Jarbas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AA</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/05/21/setting-the-print-area-with-vba/#comment-61224</link>
		<dc:creator>AA</dc:creator>
		<pubDate>Fri, 18 Mar 2011 10:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=563#comment-61224</guid>
		<description>&lt;p&gt;ATTN.: NICK &amp; others&lt;/p&gt;
&lt;p&gt;i like this code of yours, very simple &lt;/p&gt;
&lt;p&gt;sheet1.range(cells(1,1),cells(10,10)).printout&lt;/p&gt;
&lt;p&gt;BUT HOW CAN I SET A VARIABLE RANGE IN THE SECOND PART OF CELLS &lt;/p&gt;
&lt;p&gt;so basically 10,10 will change acc to the required area which i need to print. This will be known after a calculation. &lt;/p&gt;
&lt;p&gt;thanks in advance and best regards,&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>ATTN.: NICK &amp; others</p>
<p>i like this code of yours, very simple </p>
<p>sheet1.range(cells(1,1),cells(10,10)).printout</p>
<p>BUT HOW CAN I SET A VARIABLE RANGE IN THE SECOND PART OF CELLS </p>
<p>so basically 10,10 will change acc to the required area which i need to print. This will be known after a calculation. </p>
<p>thanks in advance and best regards,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cesar</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/05/21/setting-the-print-area-with-vba/#comment-60592</link>
		<dc:creator>Cesar</dc:creator>
		<pubDate>Wed, 09 Mar 2011 02:12:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=563#comment-60592</guid>
		<description>&lt;p&gt;What if I want to set a print area based on date ranges with a vba form?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>What if I want to set a print area based on date ranges with a vba form?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: john</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/05/21/setting-the-print-area-with-vba/#comment-32946</link>
		<dc:creator>john</dc:creator>
		<pubDate>Tue, 17 Jun 2008 04:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=563#comment-32946</guid>
		<description>&lt;p&gt;what if i want to set the print area according to what I have selected&lt;br&gt;
Below is my code, I have made a selection of the cells I want to set and i want to set the print area&lt;/p&gt;
&lt;p&gt;Range(&quot;A1:C1?).Select&lt;br&gt;
    Range(Selection, Selection.End(xlDown)).Select&lt;br&gt;
    Range(Selection, Selection.End(xlDown)).Select&lt;br&gt;
    Range(Selection, Selection.End(xlDown)).Select&lt;br&gt;
    Range(Selection, Selection.End(xlDown)).Select&lt;br&gt;
    Range(Selection, Selection.End(xlDown)).Select&lt;br&gt;
    ActiveSheet.PageSetup.PrintArea =&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>what if i want to set the print area according to what I have selected<br />
Below is my code, I have made a selection of the cells I want to set and i want to set the print area</p>
<p>Range(&#8220;A1:C1?).Select<br />
    Range(Selection, Selection.End(xlDown)).Select<br />
    Range(Selection, Selection.End(xlDown)).Select<br />
    Range(Selection, Selection.End(xlDown)).Select<br />
    Range(Selection, Selection.End(xlDown)).Select<br />
    Range(Selection, Selection.End(xlDown)).Select<br />
    ActiveSheet.PageSetup.PrintArea =</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/05/21/setting-the-print-area-with-vba/#comment-29027</link>
		<dc:creator>Bob</dc:creator>
		<pubDate>Thu, 29 Nov 2007 03:30:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=563#comment-29027</guid>
		<description>&lt;p&gt;I am trying to print one long line from a worksheet by breaking it up. A1:G1 on the first line with H1:N1 on the second line using Chr(10) or vbCrLf so that I can maintain the font size. Does anyone know what the syntax would be?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I am trying to print one long line from a worksheet by breaking it up. A1:G1 on the first line with H1:N1 on the second line using Chr(10) or vbCrLf so that I can maintain the font size. Does anyone know what the syntax would be?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Van Dam</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/05/21/setting-the-print-area-with-vba/#comment-28850</link>
		<dc:creator>Tom Van Dam</dc:creator>
		<pubDate>Wed, 21 Nov 2007 18:26:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=563#comment-28850</guid>
		<description>&lt;p&gt;In order to build a range you can also do the following&lt;/p&gt;
&lt;p&gt;Dim strRange as string&lt;/p&gt;
&lt;p&gt;strRange = &quot;A1:N&quot; &amp; Var&lt;/p&gt;
&lt;p&gt;This way you can determine what the number of rows are and set Var to that value.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>In order to build a range you can also do the following</p>
<p>Dim strRange as string</p>
<p>strRange = &#8220;A1:N&#8221; &amp; Var</p>
<p>This way you can determine what the number of rows are and set Var to that value.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MGray</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/05/21/setting-the-print-area-with-vba/#comment-28801</link>
		<dc:creator>MGray</dc:creator>
		<pubDate>Mon, 19 Nov 2007 17:47:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=563#comment-28801</guid>
		<description>&lt;p&gt;How do I set a specific print area using an assigned date?  Example:&lt;br&gt;
Row 8 contains date headers and I want the user to be able to print a date range.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>How do I set a specific print area using an assigned date?  Example:<br />
Row 8 contains date headers and I want the user to be able to print a date range.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/05/21/setting-the-print-area-with-vba/#comment-21895</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Tue, 19 Dec 2006 12:59:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=563#comment-21895</guid>
		<description>&lt;p&gt;Well the easiest way to do it is probably&lt;/p&gt;
&lt;p&gt;sheet1.range(cells(1,1),cells(10,10)).printout&lt;/p&gt;
&lt;p&gt;That will printout the range A1:J10&lt;/p&gt;
&lt;p&gt;any of the numbers can be changed for variables.. so you can use that to print out multiple areas on the same sheet onto different pages&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Well the easiest way to do it is probably</p>
<p>sheet1.range(cells(1,1),cells(10,10)).printout</p>
<p>That will printout the range A1:J10</p>
<p>any of the numbers can be changed for variables.. so you can use that to print out multiple areas on the same sheet onto different pages</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Crombes</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/05/21/setting-the-print-area-with-vba/#comment-17443</link>
		<dc:creator>Crombes</dc:creator>
		<pubDate>Wed, 09 Nov 2005 11:55:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=563#comment-17443</guid>
		<description>&lt;p&gt;What If you would like to print 2 area&#039;s&lt;br&gt;
on 2 sheets&lt;br&gt;
somehow i get an error message using&lt;br&gt;
Sheet1.PageSetup.PrintArea = &quot;A1:F15,A20:F45?&lt;br&gt;
first range on page1&lt;br&gt;
second range on page 2&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>What If you would like to print 2 area&#8217;s<br />
on 2 sheets<br />
somehow i get an error message using<br />
Sheet1.PageSetup.PrintArea = &#8220;A1:F15,A20:F45?<br />
first range on page1<br />
second range on page 2</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Remy B</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/05/21/setting-the-print-area-with-vba/#comment-14144</link>
		<dc:creator>Remy B</dc:creator>
		<pubDate>Thu, 16 Jun 2005 05:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=563#comment-14144</guid>
		<description>&lt;p&gt;make sure there is a printer installed when using the PrintArea procedure - otherwise it will return an error.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>make sure there is a printer installed when using the PrintArea procedure &#8211; otherwise it will return an error.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

