<?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: Resetting Window views in Excel</title>
	<atom:link href="http://www.codeforexcelandoutlook.com/blog/2009/05/resetting-window-views-in-excel/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codeforexcelandoutlook.com/blog/2009/05/resetting-window-views-in-excel/</link>
	<description>Automation and VBA code for Microsoft® Excel and Outlook</description>
	<lastBuildDate>Thu, 29 Jul 2010 10:47:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: JP</title>
		<link>http://www.codeforexcelandoutlook.com/blog/2009/05/resetting-window-views-in-excel/#comment-1998</link>
		<dc:creator>JP</dc:creator>
		<pubDate>Sun, 24 May 2009 01:01:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.codeforexcelandoutlook.com/blog/?p=613#comment-1998</guid>
		<description>(1) &#039;As Object&#039; worked for me, but it would be technically be a Chart object. So you could use &lt;strong&gt;As Object&lt;/strong&gt; or &lt;strong&gt;As Variant&lt;/strong&gt;.
(2) You&#039;re right that the type check is redundant.
(3) I like using intermediate variables, but you could easily do it your way and save a few lines of code.</description>
		<content:encoded><![CDATA[<p>(1) 'As Object' worked for me, but it would be technically be a Chart object. So you could use <strong>As Object</strong> or <strong>As Variant</strong>.<br />
(2) You're right that the type check is redundant.<br />
(3) I like using intermediate variables, but you could easily do it your way and save a few lines of code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Pierce</title>
		<link>http://www.codeforexcelandoutlook.com/blog/2009/05/resetting-window-views-in-excel/#comment-1997</link>
		<dc:creator>Michael Pierce</dc:creator>
		<pubDate>Fri, 22 May 2009 02:18:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.codeforexcelandoutlook.com/blog/?p=613#comment-1997</guid>
		<description>Nice little utility. I have a few questions for you:

(1) Just in case the current sheet is a chart when you start the macro, what data type should thisSht be? I could only get it to work using a Variant type. (If a chart is selected, the current code blows up.)

(2) Since you&#039;re cycling through Excel.Worksheets, why are you checking the TypeName()? Aren&#039;t they always going to be worksheets?

(3) Is there a reason to use the currentWindow variable? Wouldn&#039;t just using the statement ActiveWindow.View = xlNormalView work just as well?</description>
		<content:encoded><![CDATA[<p>Nice little utility. I have a few questions for you:</p>
<p>(1) Just in case the current sheet is a chart when you start the macro, what data type should thisSht be? I could only get it to work using a Variant type. (If a chart is selected, the current code blows up.)</p>
<p>(2) Since you're cycling through Excel.Worksheets, why are you checking the TypeName()? Aren't they always going to be worksheets?</p>
<p>(3) Is there a reason to use the currentWindow variable? Wouldn't just using the statement ActiveWindow.View = xlNormalView work just as well?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
