<?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: Column Widths In Points</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2004/06/01/column-widths-in-points/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2004/06/01/column-widths-in-points/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Wed, 08 Feb 2012 23:58:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: M P</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/06/01/column-widths-in-points/#comment-17413</link>
		<dc:creator>M P</dc:creator>
		<pubDate>Fri, 04 Nov 2005 05:21:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=590#comment-17413</guid>
		<description>&lt;p&gt;I may have found a way to rescale columns to user-determined widths with a called macro (note that I&#039;m using inches instead of cms...if you want cm input, I&#039;m sure calls to CentemetersToPoints would work):&lt;/p&gt;
&lt;p&gt;Sub ChangeSelectedColWidthIn()&lt;br&gt;
&#039; ChangeSelectedColWidthIn Macro&lt;br&gt;
&#039; Macro recorded 11/03/2005 by M P&lt;br&gt;
    inWidth = Application.InputBox(prompt:=&quot;Enter Width (in inches)&quot;, Title:=&quot;Set Width of Selected Columns&quot;, Type:=1)&lt;br&gt;
    oldWidthPts = Range(&quot;A1?).Width&lt;br&gt;
    Range(&quot;A1?).ColumnWidth = 255&lt;br&gt;
    scaleFactor = Range(&quot;A1?).Width / 255&lt;br&gt;
    Range(&quot;A1?).ColumnWidth = oldWidthPts / scaleFactor&lt;br&gt;
    Selection.Columns.ColumnWidth = Application.InchesToPoints(inWidth) / scaleFactor&lt;br&gt;
End Sub&lt;/p&gt;
&lt;p&gt;Note that this example will rescale the &quot;A&quot; column.  If you don&#039;t use the 255 scaling factor bit, you&#039;ll get significant resizing of the A column and less accurate scaling elsewhere.  I assume it&#039;s due to round-off.&lt;/p&gt;
&lt;p&gt;if you have any improvements/amendments to my code, please don&#039;t hesitate to contact me.  I suppose it&#039;d be best to play around with the ZZ column rather than A, but I don&#039;t know if that&#039;d mess with set print areas;)&lt;/p&gt;
&lt;p&gt;Papa Alpha Golf Echo Lima at Charley Sierra dot wisc dot edu &lt;/p&gt;
&lt;p&gt;(got lazy at the end there:P)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I may have found a way to rescale columns to user-determined widths with a called macro (note that I&#8217;m using inches instead of cms&#8230;if you want cm input, I&#8217;m sure calls to CentemetersToPoints would work):</p>
<p>Sub ChangeSelectedColWidthIn()<br />
&#8216; ChangeSelectedColWidthIn Macro<br />
&#8216; Macro recorded 11/03/2005 by M P<br />
    inWidth = Application.InputBox(prompt:=&#8221;Enter Width (in inches)&#8221;, Title:=&#8221;Set Width of Selected Columns&#8221;, Type:=1)<br />
    oldWidthPts = Range(&#8220;A1?).Width<br />
    Range(&#8220;A1?).ColumnWidth = 255<br />
    scaleFactor = Range(&#8220;A1?).Width / 255<br />
    Range(&#8220;A1?).ColumnWidth = oldWidthPts / scaleFactor<br />
    Selection.Columns.ColumnWidth = Application.InchesToPoints(inWidth) / scaleFactor<br />
End Sub</p>
<p>Note that this example will rescale the &#8220;A&#8221; column.  If you don&#8217;t use the 255 scaling factor bit, you&#8217;ll get significant resizing of the A column and less accurate scaling elsewhere.  I assume it&#8217;s due to round-off.</p>
<p>if you have any improvements/amendments to my code, please don&#8217;t hesitate to contact me.  I suppose it&#8217;d be best to play around with the ZZ column rather than A, but I don&#8217;t know if that&#8217;d mess with set print areas;)</p>
<p>Papa Alpha Golf Echo Lima at Charley Sierra dot wisc dot edu </p>
<p>(got lazy at the end there:P)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/06/01/column-widths-in-points/#comment-1620</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Sun, 13 Jun 2004 06:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=590#comment-1620</guid>
		<description>&lt;p&gt;I ran into this myself again recently, and found three times was the best you&#039;ll get. After that it either bounces around the target, or occasionally it just goes haywire. For the app I was building, it was better for me to aim a couple percent wider than the target, and live with it.&lt;/p&gt;
&lt;p&gt;When you adjust chart plot area dimensions, or format a chart with lots of series, sometimes you have to rerun that a few times, too.&lt;/p&gt;
&lt;p&gt;- Jon&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I ran into this myself again recently, and found three times was the best you&#8217;ll get. After that it either bounces around the target, or occasionally it just goes haywire. For the app I was building, it was better for me to aim a couple percent wider than the target, and live with it.</p>
<p>When you adjust chart plot area dimensions, or format a chart with lots of series, sometimes you have to rerun that a few times, too.</p>
<p>- Jon</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vince Ward</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/06/01/column-widths-in-points/#comment-1619</link>
		<dc:creator>Vince Ward</dc:creator>
		<pubDate>Tue, 01 Jun 2004 18:40:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=590#comment-1619</guid>
		<description>&lt;p&gt;Thank you, Dick!&lt;/p&gt;
&lt;p&gt;I would have never figured that out on my own.  I&#039;m going to have to play around this now.&lt;/p&gt;
&lt;p&gt;Thanks again,&lt;/p&gt;
&lt;p&gt;Vince&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thank you, Dick!</p>
<p>I would have never figured that out on my own.  I&#8217;m going to have to play around this now.</p>
<p>Thanks again,</p>
<p>Vince</p>
]]></content:encoded>
	</item>
</channel>
</rss>

