<?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: Page Of Pages in a Cell</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2004/12/22/page-of-pages-in-a-cell/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2004/12/22/page-of-pages-in-a-cell/</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: NARAYAN</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/22/page-of-pages-in-a-cell/#comment-73042</link>
		<dc:creator>NARAYAN</dc:creator>
		<pubDate>Mon, 30 Jan 2012 16:01:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=953#comment-73042</guid>
		<description>Hi Jan Karel ,

Many thanks for this amazing stuff. Just one note - the apostrophes were not actually apostrophes , and only on replacing them with actual apostrophes , the formula worked.

Tony : Please do the following :

Click on Name Manager ; click on New ; for the range name , either copy + paste or type in RowAfterpgbrk ; click in the Refers To box , and delete whatever is displayed there ; copy + paste or type in =GET.DOCUMENT(64)

Repeat this for the remaining three range names : TotPageCount , PageOfPages and ThisPage.

Within your worksheet define your print range ; go to each page break and wherever you want , on each page , type in the formula =PageOfPages ; you should see something like Page 1 of 17 ; Page 2 of 17 and so on , depending on whether you have put in the formula on the first page or the second or .... The total number of pages ( 17 in my example ) will again depend on the size of your defined print range.

Narayan</description>
		<content:encoded><![CDATA[<p>Hi Jan Karel ,</p>
<p>Many thanks for this amazing stuff. Just one note &#8211; the apostrophes were not actually apostrophes , and only on replacing them with actual apostrophes , the formula worked.</p>
<p>Tony : Please do the following :</p>
<p>Click on Name Manager ; click on New ; for the range name , either copy + paste or type in RowAfterpgbrk ; click in the Refers To box , and delete whatever is displayed there ; copy + paste or type in =GET.DOCUMENT(64)</p>
<p>Repeat this for the remaining three range names : TotPageCount , PageOfPages and ThisPage.</p>
<p>Within your worksheet define your print range ; go to each page break and wherever you want , on each page , type in the formula =PageOfPages ; you should see something like Page 1 of 17 ; Page 2 of 17 and so on , depending on whether you have put in the formula on the first page or the second or &#8230;. The total number of pages ( 17 in my example ) will again depend on the size of your defined print range.</p>
<p>Narayan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/22/page-of-pages-in-a-cell/#comment-71047</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Sat, 24 Dec 2011 17:12:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=953#comment-71047</guid>
		<description>I tried to get.ducument() in excel 2007, but got error message: &quot;this is not a valid function.&quot; Any help?</description>
		<content:encoded><![CDATA[<p>I tried to get.ducument() in excel 2007, but got error message: &#8220;this is not a valid function.&#8221; Any help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan Karel Pieterse</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/22/page-of-pages-in-a-cell/#comment-61544</link>
		<dc:creator>Jan Karel Pieterse</dc:creator>
		<pubDate>Fri, 25 Mar 2011 20:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=953#comment-61544</guid>
		<description>&lt;p&gt;For Excel 2010, maybe you could use that new method to make working with page setup stuff faster:&lt;/p&gt;
&lt;p&gt;application.PrintCommunication = False&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>For Excel 2010, maybe you could use that new method to make working with page setup stuff faster:</p>
<p>application.PrintCommunication = False</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brad Yundt</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/22/page-of-pages-in-a-cell/#comment-61514</link>
		<dc:creator>Brad Yundt</dc:creator>
		<pubDate>Fri, 25 Mar 2011 04:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=953#comment-61514</guid>
		<description>&lt;p&gt;In trying to modify Ture&#039;s code to return the total number of pages for Jan Karel, I observed that the function below does not update automatically. The simple answer is to make it volatilebut there is a noticeable delay while it recalculates. This delay would be intolerable if you were editing the workbook. For this reason, I suggest manually triggering the recalculation, such as by changing the value in the cell being passed as a parameter.&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;Function&lt;/span&gt; PageCount(cel &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; Range) &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Long&lt;/span&gt;&lt;br&gt;
&lt;span class=&quot;co1&quot;&gt;&#039;Returns the number of pages for the worksheet containing range cel&lt;br&gt;
&lt;/span&gt;&lt;span class=&quot;co1&quot;&gt;&#039;Note: function is not volatile, so it needs to be refreshed manually. _&lt;br&gt;
&#160; &#160; It is not very fast, so it would be unwise to make function volatile.&lt;br&gt;
&lt;/span&gt; &#160;&lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; pb, h &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Long&lt;/span&gt;, v &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Long&lt;/span&gt;&lt;br&gt;
&#160; &lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; rg &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; Range, rgPrintArea &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; Range&lt;br&gt;
&#160; &lt;span class=&quot;kw1&quot;&gt;With&lt;/span&gt; cel.Parent&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt; .PageSetup.PrintArea = &lt;span class=&quot;st0&quot;&gt;&quot;&quot;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Then&lt;/span&gt;&lt;br&gt;
&#160; &#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Set&lt;/span&gt; rgPrintArea = .UsedRange&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Else&lt;/span&gt;&lt;br&gt;
&#160; &#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Set&lt;/span&gt; rgPrintArea = .Range(.PageSetup.PrintArea)&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Set&lt;/span&gt; rg = rgPrintArea.Cells(rgPrintArea.Rows.Count, rgPrintArea.Columns.Count)&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;For&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Each&lt;/span&gt; pb &lt;span class=&quot;kw1&quot;&gt;In&lt;/span&gt; .HPageBreaks&lt;br&gt;
&#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt; pb.Location.Row &lt;= rg.Row &lt;span class=&quot;kw1&quot;&gt;Then&lt;/span&gt; h = h + 1 &lt;span class=&quot;kw1&quot;&gt;Else&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Exit&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;For&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Next&lt;/span&gt; pb&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;For&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Each&lt;/span&gt; pb &lt;span class=&quot;kw1&quot;&gt;In&lt;/span&gt; .VPageBreaks&lt;br&gt;
&#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt; pb.Location.Column &lt;= rg.Column &lt;span class=&quot;kw1&quot;&gt;Then&lt;/span&gt; v = v + 1 &lt;span class=&quot;kw1&quot;&gt;Else&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Exit&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;For&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Next&lt;/span&gt; pb&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Select&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Case&lt;/span&gt; .PageSetup.Order&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Case&lt;/span&gt; xlDownThenOver&lt;br&gt;
&#160; &#160; &#160; PageCount = ((.HPageBreaks.Count + 1) * v) + h + 1&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Case&lt;/span&gt; xlOverThenDown&lt;br&gt;
&#160; &#160; &#160; PageCount = ((.VPageBreaks.Count + 1) * h) + v + 1&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Select&lt;/span&gt;&lt;br&gt;
&#160; &lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;With&lt;/span&gt;&lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Function&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Brad&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>In trying to modify Ture&#8217;s code to return the total number of pages for Jan Karel, I observed that the function below does not update automatically. The simple answer is to make it volatilebut there is a noticeable delay while it recalculates. This delay would be intolerable if you were editing the workbook. For this reason, I suggest manually triggering the recalculation, such as by changing the value in the cell being passed as a parameter.</p>
<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container vb default">
<div style="white-space: nowrap;" class="vb codecolorer"><span class="kw1">Function</span> PageCount(cel <span class="kw1">As</span> Range) <span class="kw1">As</span> <span class="kw1">Long</span><br />
<span class="co1">&#8216;Returns the number of pages for the worksheet containing range cel<br />
</span><span class="co1">&#8216;Note: function is not volatile, so it needs to be refreshed manually. _<br />
&nbsp; &nbsp; It is not very fast, so it would be unwise to make function volatile.<br />
</span> &nbsp;<span class="kw1">Dim</span> pb, h <span class="kw1">As</span> <span class="kw1">Long</span>, v <span class="kw1">As</span> <span class="kw1">Long</span><br />
&nbsp; <span class="kw1">Dim</span> rg <span class="kw1">As</span> Range, rgPrintArea <span class="kw1">As</span> Range<br />
&nbsp; <span class="kw1">With</span> cel.Parent<br />
&nbsp; &nbsp; <span class="kw1">If</span> .PageSetup.PrintArea = <span class="st0">&#8220;&#8221;</span> <span class="kw1">Then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">Set</span> rgPrintArea = .UsedRange<br />
&nbsp; &nbsp; <span class="kw1">Else</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">Set</span> rgPrintArea = .Range(.PageSetup.PrintArea)<br />
&nbsp; &nbsp; <span class="kw1">End</span> <span class="kw1">If</span><br />
&nbsp; &nbsp; <span class="kw1">Set</span> rg = rgPrintArea.Cells(rgPrintArea.Rows.Count, rgPrintArea.Columns.Count)<br />
&nbsp; &nbsp; <span class="kw1">For</span> <span class="kw1">Each</span> pb <span class="kw1">In</span> .HPageBreaks<br />
&nbsp; &nbsp; &nbsp; <span class="kw1">If</span> pb.Location.Row &lt;= rg.Row <span class="kw1">Then</span> h = h + 1 <span class="kw1">Else</span> <span class="kw1">Exit</span> <span class="kw1">For</span><br />
&nbsp; &nbsp; <span class="kw1">Next</span> pb<br />
&nbsp; &nbsp; <span class="kw1">For</span> <span class="kw1">Each</span> pb <span class="kw1">In</span> .VPageBreaks<br />
&nbsp; &nbsp; &nbsp; <span class="kw1">If</span> pb.Location.Column &lt;= rg.Column <span class="kw1">Then</span> v = v + 1 <span class="kw1">Else</span> <span class="kw1">Exit</span> <span class="kw1">For</span><br />
&nbsp; &nbsp; <span class="kw1">Next</span> pb<br />
&nbsp; &nbsp; <span class="kw1">Select</span> <span class="kw1">Case</span> .PageSetup.Order<br />
&nbsp; &nbsp; <span class="kw1">Case</span> xlDownThenOver<br />
&nbsp; &nbsp; &nbsp; PageCount = ((.HPageBreaks.Count + 1) * v) + h + 1<br />
&nbsp; &nbsp; <span class="kw1">Case</span> xlOverThenDown<br />
&nbsp; &nbsp; &nbsp; PageCount = ((.VPageBreaks.Count + 1) * h) + v + 1<br />
&nbsp; &nbsp; <span class="kw1">End</span> <span class="kw1">Select</span><br />
&nbsp; <span class="kw1">End</span> <span class="kw1">With</span><br />
<span class="kw1">End</span> <span class="kw1">Function</span></div>
</div>
<p>Brad</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan Karel Pieterse</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/22/page-of-pages-in-a-cell/#comment-61350</link>
		<dc:creator>Jan Karel Pieterse</dc:creator>
		<pubDate>Mon, 21 Mar 2011 10:01:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=953#comment-61350</guid>
		<description>&lt;p&gt;Hi Brad,&lt;/p&gt;
&lt;p&gt;Thanks for that. I&#039;d be interested to see a similar function for total number of pages...&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Brad,</p>
<p>Thanks for that. I&#8217;d be interested to see a similar function for total number of pages&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brad Yundt</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/22/page-of-pages-in-a-cell/#comment-61267</link>
		<dc:creator>Brad Yundt</dc:creator>
		<pubDate>Sat, 19 Mar 2011 05:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=953#comment-61267</guid>
		<description>&lt;p&gt;Former Excel MVP Ture Magnusson posted a UDF to return the page number at: &lt;a href=&quot;http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/MS_Office/Q_10213800.html#2094940&quot; rel=&quot;nofollow&quot;&gt;http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/MS_Office/Q_10213800.html#2094940&lt;/a&gt;&lt;br&gt;
You use it with a worksheet formula like:&lt;br&gt;
=PageNumber(A100)           &#039;returns page number of cell A100&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;Function&lt;/span&gt; PageNumber(c &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; Range) &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Long&lt;/span&gt;&lt;br&gt;
&#160; &lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; pb, h &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Long&lt;/span&gt;, v &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Long&lt;/span&gt;&lt;br&gt;
&#160;&lt;br&gt;
&#160; &lt;span class=&quot;kw1&quot;&gt;For&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Each&lt;/span&gt; pb &lt;span class=&quot;kw1&quot;&gt;In&lt;/span&gt; c.Parent.HPageBreaks&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt; pb.Location.Row &lt;= c.Row &lt;span class=&quot;kw1&quot;&gt;Then&lt;/span&gt; h = h + 1 &lt;span class=&quot;kw1&quot;&gt;Else&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Exit&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;For&lt;/span&gt;&lt;br&gt;
&#160; &lt;span class=&quot;kw1&quot;&gt;Next&lt;/span&gt; pb&lt;br&gt;
&#160; &lt;span class=&quot;kw1&quot;&gt;For&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Each&lt;/span&gt; pb &lt;span class=&quot;kw1&quot;&gt;In&lt;/span&gt; c.Parent.VPageBreaks&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt; pb.Location.Column &lt;= c.Column &lt;span class=&quot;kw1&quot;&gt;Then&lt;/span&gt; v = v + 1 &lt;span class=&quot;kw1&quot;&gt;Else&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Exit&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;For&lt;/span&gt;&lt;br&gt;
&#160; &lt;span class=&quot;kw1&quot;&gt;Next&lt;/span&gt; pb&lt;br&gt;
&#160; &lt;span class=&quot;kw1&quot;&gt;Select&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Case&lt;/span&gt; c.Parent.PageSetup.Order&lt;br&gt;
&#160; &lt;span class=&quot;kw1&quot;&gt;Case&lt;/span&gt; xlDownThenOver&lt;br&gt;
&#160; &#160; PageNumber = ((c.Parent.HPageBreaks.Count + 1) * v) + h + 1&lt;br&gt;
&#160; &lt;span class=&quot;kw1&quot;&gt;Case&lt;/span&gt; xlOverThenDown&lt;br&gt;
&#160; &#160; PageNumber = ((c.Parent.VPageBreaks.Count + 1) * h) + v + 1&lt;br&gt;
&#160; &lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Select&lt;/span&gt;&lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Function&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Brad&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Former Excel MVP Ture Magnusson posted a UDF to return the page number at: <a href="http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/MS_Office/Q_10213800.html#2094940" rel="nofollow">http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/MS_Office/Q_10213800.html#2094940</a><br />
You use it with a worksheet formula like:<br />
=PageNumber(A100)           &#8216;returns page number of cell A100</p>
<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container vb default">
<div style="white-space: nowrap;" class="vb codecolorer"><span class="kw1">Function</span> PageNumber(c <span class="kw1">As</span> Range) <span class="kw1">As</span> <span class="kw1">Long</span><br />
&nbsp; <span class="kw1">Dim</span> pb, h <span class="kw1">As</span> <span class="kw1">Long</span>, v <span class="kw1">As</span> <span class="kw1">Long</span><br />
&nbsp;<br />
&nbsp; <span class="kw1">For</span> <span class="kw1">Each</span> pb <span class="kw1">In</span> c.Parent.HPageBreaks<br />
&nbsp; &nbsp; <span class="kw1">If</span> pb.Location.Row &lt;= c.Row <span class="kw1">Then</span> h = h + 1 <span class="kw1">Else</span> <span class="kw1">Exit</span> <span class="kw1">For</span><br />
&nbsp; <span class="kw1">Next</span> pb<br />
&nbsp; <span class="kw1">For</span> <span class="kw1">Each</span> pb <span class="kw1">In</span> c.Parent.VPageBreaks<br />
&nbsp; &nbsp; <span class="kw1">If</span> pb.Location.Column &lt;= c.Column <span class="kw1">Then</span> v = v + 1 <span class="kw1">Else</span> <span class="kw1">Exit</span> <span class="kw1">For</span><br />
&nbsp; <span class="kw1">Next</span> pb<br />
&nbsp; <span class="kw1">Select</span> <span class="kw1">Case</span> c.Parent.PageSetup.Order<br />
&nbsp; <span class="kw1">Case</span> xlDownThenOver<br />
&nbsp; &nbsp; PageNumber = ((c.Parent.HPageBreaks.Count + 1) * v) + h + 1<br />
&nbsp; <span class="kw1">Case</span> xlOverThenDown<br />
&nbsp; &nbsp; PageNumber = ((c.Parent.VPageBreaks.Count + 1) * h) + v + 1<br />
&nbsp; <span class="kw1">End</span> <span class="kw1">Select</span><br />
<span class="kw1">End</span> <span class="kw1">Function</span></div>
</div>
<p>Brad</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jason</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/22/page-of-pages-in-a-cell/#comment-61192</link>
		<dc:creator>jason</dc:creator>
		<pubDate>Thu, 17 Mar 2011 17:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=953#comment-61192</guid>
		<description>&lt;p&gt;I scoured the net looking for VB solutions to these problems. I left your page open for days before trying it because I thought someone must have surely posted a simple VB or UDF that does this. Resorting to the abandoned macro functions didn&#039;t seem right. However, this is the only thing that got the job done. Seriously thank you for keeping this page available. &lt;/p&gt;
&lt;p&gt;I will continue trying to reach a VB solution for =ThisPage but until then...&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I scoured the net looking for VB solutions to these problems. I left your page open for days before trying it because I thought someone must have surely posted a simple VB or UDF that does this. Resorting to the abandoned macro functions didn&#8217;t seem right. However, this is the only thing that got the job done. Seriously thank you for keeping this page available. </p>
<p>I will continue trying to reach a VB solution for =ThisPage but until then&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jkpieterse</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/22/page-of-pages-in-a-cell/#comment-57818</link>
		<dc:creator>jkpieterse</dc:creator>
		<pubDate>Mon, 24 Jan 2011 13:38:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=953#comment-57818</guid>
		<description>&lt;p&gt;No, it does not work in the repeating rows. Rows repeated are always on page 1 so will always show page 1 of xx&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>No, it does not work in the repeating rows. Rows repeated are always on page 1 so will always show page 1 of xx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick Kusleika</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/22/page-of-pages-in-a-cell/#comment-57788</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Mon, 24 Jan 2011 02:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=953#comment-57788</guid>
		<description>&lt;p&gt;I&#039;ve never found a way to make it work with rows that repeat.  See here &lt;a href=&quot;http://www.dailydoseofexcel.com/archives/2010/01/26/vba-page-of-pages-in-a-cell/&quot; rel=&quot;nofollow&quot;&gt;http://www.dailydoseofexcel.com/archives/2010/01/26/vba-page-of-pages-in-a-cell/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;As for the defined names, the only ones you really need are RowAfterPagebrk, TotPageCount, and PageOfPages.  If you want to use any of the other names, you can add them.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I&#8217;ve never found a way to make it work with rows that repeat.  See here <a href="http://www.dailydoseofexcel.com/archives/2010/01/26/vba-page-of-pages-in-a-cell/" rel="nofollow">http://www.dailydoseofexcel.com/archives/2010/01/26/vba-page-of-pages-in-a-cell/</a></p>
<p>As for the defined names, the only ones you really need are RowAfterPagebrk, TotPageCount, and PageOfPages.  If you want to use any of the other names, you can add them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lenny33</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/22/page-of-pages-in-a-cell/#comment-57648</link>
		<dc:creator>Lenny33</dc:creator>
		<pubDate>Fri, 21 Jan 2011 22:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=953#comment-57648</guid>
		<description>&lt;p&gt;Stuart and Ron never got a response to their question regarding formulas placed in repeating rows.... is there a way to update the formulas for each page within the designated print area?  I played a bit with this and depending upon how &#039;deep&#039; the print area was, the number of pages did change by not the &#039;page&#039; (from 1 of 3 to 1 of 10), however - this appeared the same on each of the 10 pages.&lt;/p&gt;
&lt;p&gt;Also - I noticed in your sample excel file that there were some additional &#039;defined&#039; names that seemed to pertain to the print area that were left out of your initial response.  Are these additional names crucial to the updating?&lt;/p&gt;
&lt;p&gt;Some clarification would be immensely helpful.&lt;/p&gt;
&lt;p&gt;Regards - Lenny33&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Stuart and Ron never got a response to their question regarding formulas placed in repeating rows&#8230;. is there a way to update the formulas for each page within the designated print area?  I played a bit with this and depending upon how &#8216;deep&#8217; the print area was, the number of pages did change by not the &#8216;page&#8217; (from 1 of 3 to 1 of 10), however &#8211; this appeared the same on each of the 10 pages.</p>
<p>Also &#8211; I noticed in your sample excel file that there were some additional &#8216;defined&#8217; names that seemed to pertain to the print area that were left out of your initial response.  Are these additional names crucial to the updating?</p>
<p>Some clarification would be immensely helpful.</p>
<p>Regards &#8211; Lenny33</p>
]]></content:encoded>
	</item>
</channel>
</rss>

