<?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: Sizing Listbox Columns</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2009/03/02/sizing-listbox-columns/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2009/03/02/sizing-listbox-columns/</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: Dick Kusleika</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/03/02/sizing-listbox-columns/#comment-38307</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Tue, 03 Mar 2009 20:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2182#comment-38307</guid>
		<description>&lt;p&gt;Nope, I didn&#039;t make it this year.  Too many other commitments this Winter/Spring.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Nope, I didn&#8217;t make it this year.  Too many other commitments this Winter/Spring.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harald Staff</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/03/02/sizing-listbox-columns/#comment-38304</link>
		<dc:creator>Harald Staff</dc:creator>
		<pubDate>Tue, 03 Mar 2009 18:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2182#comment-38304</guid>
		<description>&lt;p&gt;You&#039;re not in Seattle this year ? Or are you blogging during the quiet Ballmer sessions ?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>You&#8217;re not in Seattle this year ? Or are you blogging during the quiet Ballmer sessions ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joprotus</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/03/02/sizing-listbox-columns/#comment-38300</link>
		<dc:creator>Joprotus</dc:creator>
		<pubDate>Tue, 03 Mar 2009 14:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2182#comment-38300</guid>
		<description>&lt;p&gt;I like this trick, useful for my current project. Thanks for sharing.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I like this trick, useful for my current project. Thanks for sharing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nigel Heffernan</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/03/02/sizing-listbox-columns/#comment-38299</link>
		<dc:creator>Nigel Heffernan</dc:creator>
		<pubDate>Tue, 03 Mar 2009 08:10:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2182#comment-38299</guid>
		<description>&lt;p&gt;Nice! Using &#039;magic numbers&#039; like len() x Font.Size x 1.2 has never really worked; it had never occurred to me that I could use a label&#039;s embedded ability to set it&#039;s own width.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Nice! Using &#8216;magic numbers&#8217; like len() x Font.Size x 1.2 has never really worked; it had never occurred to me that I could use a label&#8217;s embedded ability to set it&#8217;s own width.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hans Schraven</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/03/02/sizing-listbox-columns/#comment-38287</link>
		<dc:creator>Hans Schraven</dc:creator>
		<pubDate>Mon, 02 Mar 2009 18:20:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2182#comment-38287</guid>
		<description>&lt;p&gt;Why not using Excel ?&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;Private&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Sub&lt;/span&gt; UserForm_Initialize()&lt;br&gt;
&#160; sq = Sheets(1).UsedRange&lt;br&gt;
&#160; ListBox1.List = sq&lt;br&gt;
&#160; &#160; &lt;br&gt;
&#160; Sheets(1).UsedRange.Columns.AutoFit&lt;br&gt;
&#160; ListBox1.Width = Sheets(1).UsedRange.Columns(&lt;span class=&quot;kw1&quot;&gt;UBound&lt;/span&gt;(sq, 2) + 1).Left * 1.2 + 3&lt;br&gt;
&#160; Application.Wait Now + TimeValue(&lt;span class=&quot;st0&quot;&gt;&quot;00:00:01&quot;&lt;/span&gt;)&lt;br&gt;
&#160; &#160; &lt;br&gt;
&#160; ListBox1.ColumnCount = &lt;span class=&quot;kw1&quot;&gt;UBound&lt;/span&gt;(sq, 2)&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; cl &lt;span class=&quot;kw1&quot;&gt;In&lt;/span&gt; Sheets(1).UsedRange.Columns&lt;br&gt;
&#160; &#160; c0 = IIf(c0 = &lt;span class=&quot;st0&quot;&gt;&quot;&quot;&lt;/span&gt;, &lt;span class=&quot;st0&quot;&gt;&quot;&quot;&lt;/span&gt;, c0 &amp; &lt;span class=&quot;st0&quot;&gt;&quot;;&quot;&lt;/span&gt;) &amp; cl.Width * 1.2&lt;br&gt;
&#160; &lt;span class=&quot;kw1&quot;&gt;Next&lt;/span&gt;&lt;br&gt;
&#160; ListBox1.ColumnWidths = c0&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>Why not using Excel ?</p>
<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container vb default">
<div style="white-space: nowrap;" class="vb codecolorer"><span class="kw1">Private</span> <span class="kw1">Sub</span> UserForm_Initialize()<br />
&nbsp; sq = Sheets(1).UsedRange<br />
&nbsp; ListBox1.List = sq<br />
&nbsp; &nbsp; <br />
&nbsp; Sheets(1).UsedRange.Columns.AutoFit<br />
&nbsp; ListBox1.Width = Sheets(1).UsedRange.Columns(<span class="kw1">UBound</span>(sq, 2) + 1).Left * 1.2 + 3<br />
&nbsp; Application.Wait Now + TimeValue(<span class="st0">&#8220;00:00:01&#8243;</span>)<br />
&nbsp; &nbsp; <br />
&nbsp; ListBox1.ColumnCount = <span class="kw1">UBound</span>(sq, 2)<br />
&nbsp; <span class="kw1">For</span> <span class="kw1">Each</span> cl <span class="kw1">In</span> Sheets(1).UsedRange.Columns<br />
&nbsp; &nbsp; c0 = IIf(c0 = <span class="st0">&#8220;&#8221;</span>, <span class="st0">&#8220;&#8221;</span>, c0 &amp;amp; <span class="st0">&#8220;;&#8221;</span>) &amp;amp; cl.Width * 1.2<br />
&nbsp; <span class="kw1">Next</span><br />
&nbsp; ListBox1.ColumnWidths = c0<br />
<span class="kw1">End</span> <span class="kw1">Sub</span></div>
</div>
]]></content:encoded>
	</item>
</channel>
</rss>

