<?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: Unspecified but Painfully Frustrating Error</title>
	<atom:link href="http://peltiertech.com/WordPress/unspecified-painfully-frustrating-error/feed/" rel="self" type="application/rss+xml" />
	<link>http://peltiertech.com/WordPress/unspecified-painfully-frustrating-error/</link>
	<description>Peltier Tech Excel Charts and Programming Blog</description>
	<lastBuildDate>Wed, 23 May 2012 11:03:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Jon Peltier</title>
		<link>http://peltiertech.com/WordPress/unspecified-painfully-frustrating-error/comment-page-1/#comment-176513</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Wed, 25 Jan 2012 22:51:35 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=2137#comment-176513</guid>
		<description>Max -

Thanks for sharing your detailed trouble-shooting.

At one point I had done some heavy engineering of the C:\Windows\System32 directory, with respect to the ref edit library. There were different versions of this file, with different dates and different file sizes. For a while if I replaced whatever was there with the version that came with 2003, all was cool. But then this became unreliable, and I was forced to remove the RefEdits from my dialogs.

I implemented an &lt;a href=&quot;http://peltiertech.com/WordPress/refedit-control-alternative/&quot; title=&quot;Alternative to Excel’s Flaky RefEdit Control&quot; rel=&quot;nofollow&quot;&gt;Alternative to Excel’s Flaky RefEdit Control&lt;/a&gt; which used text boxes and the InputBox function to get the user-selected range. But this is not as nice as the RefEdit, when the RefEdit works.

It seems that the RefEdit has stabilized after a number of 2007 and 2010 updates, so I have found a &lt;a href=&quot;http://peltiertech.com/WordPress/new-refedit-approach-volunteers-wanted/&quot; title=&quot;New RefEdit Approach – Volunteers Wanted&quot; rel=&quot;nofollow&quot;&gt;New RefEdit Approach&lt;/a&gt; that adds RefEdits on the fly when the dialog loads; if there&#039;s an error, the RefEdit couldn&#039;t load and wouldn&#039;t work anyway, so I revert to the kludgey textbox/InputBox approach. This will roll out with my new utilities later this year.</description>
		<content:encoded><![CDATA[<p>Max -</p>
<p>Thanks for sharing your detailed trouble-shooting.</p>
<p>At one point I had done some heavy engineering of the C:\Windows\System32 directory, with respect to the ref edit library. There were different versions of this file, with different dates and different file sizes. For a while if I replaced whatever was there with the version that came with 2003, all was cool. But then this became unreliable, and I was forced to remove the RefEdits from my dialogs.</p>
<p>I implemented an <a href="http://peltiertech.com/WordPress/refedit-control-alternative/" title="Alternative to Excel’s Flaky RefEdit Control" rel="nofollow">Alternative to Excel’s Flaky RefEdit Control</a> which used text boxes and the InputBox function to get the user-selected range. But this is not as nice as the RefEdit, when the RefEdit works.</p>
<p>It seems that the RefEdit has stabilized after a number of 2007 and 2010 updates, so I have found a <a href="http://peltiertech.com/WordPress/new-refedit-approach-volunteers-wanted/" title="New RefEdit Approach – Volunteers Wanted" rel="nofollow">New RefEdit Approach</a> that adds RefEdits on the fly when the dialog loads; if there&#8217;s an error, the RefEdit couldn&#8217;t load and wouldn&#8217;t work anyway, so I revert to the kludgey textbox/InputBox approach. This will roll out with my new utilities later this year.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max</title>
		<link>http://peltiertech.com/WordPress/unspecified-painfully-frustrating-error/comment-page-1/#comment-176507</link>
		<dc:creator>Max</dc:creator>
		<pubDate>Wed, 25 Jan 2012 22:20:14 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=2137#comment-176507</guid>
		<description>Jon, thank you for the time you spent preparing this very informative post, and I&#039;m particularly impressed by your attention to detail and willingness to address our comments.

I have been designing an Excel application that utilizes a very, very heavy userform, replete with 8 different tabs probably 100+ controls (many of which are added dynamically at runtime, depending on user input). The only controls i&#039;m using at the moment are the default Microsoft Forms 2.0, the reason being that they are free (albeit a little antiquated). I&#039;m developing in Excel 2003, but also testing simultaneously in 07 and 10.

I have faced the frustrating issue not with RefEdit but with ListBox instead, when setting the RowSource property. Unspecified error, cannot set rowsource property. It&#039;s a similar problem, with the memory issue every now and then. I have NEVER been unable to solve an issue faced while coding VBA applications, usually because someone posts about it with a resolution. But for the longest time this one eluded me. My application was unable to set the rowsource with a named range even after clearing the list, and it returned this error without any explanation.

I have solved the problem for my particular case.

What I attempted is a risk, because I am altering files in the C:\Windows\System32 directory on which the Office programs depend for functioning. But it worked for me. I&#039;m operating on Win XP Professional, using MS Office 2003 AND 2010 installed on the same system.

There are two files of interest in that directory. One is called &quot;FM20.DLL&quot; and the other &quot;FM20ENU.DLL&quot;. I would assume the latter file is an English-only version, and may not exist in others&#039; systems. My contention is that MS screwed up these files somehow when they published the newer versions of Office. Don&#039;t ask me how, or why, or what exactly these files do. To my judgment, they are the setup/config files for all of the default userform controls used by VBA userforms. Probably set the memory allocation for them.

Anyway, I found that when I had Excel 07 and 10 installed on the system, even if I was using 2003, the application would fail when trying to set the row source property.  I took the following steps to resolve:

1. I uninstalled all office versions. Rebooted.

2. I re-installed 2003 and took a look in the System32 folder, and noticed that these files were last modified in 2010, meaning that they remained left over from the Office 10 installation.

3. I copied these files to the desktop only for back-up purposes.

4. I deleted these two files. Excel should be closed.

5. I opened up MS Excel 2003, and it greeted me with an installation screen before fully opening up. It installed something successfully.

6. I opened up the C\Windows\System32 directory and looked for those two files. They had a date modified of 2007. Good news. Vintage.

7. I copied them to a separate folder in my desktop for back-up.

8. I installed Office 10 and looked again and saw that the two files had a date modified of 2010. I replaced these files with the backups of the 2007 files (which were installed by 2003). 

I now have no issues with unspecified errors in my userforms. At your own risk, perhaps give that a try. Worked for me for a similar issue.</description>
		<content:encoded><![CDATA[<p>Jon, thank you for the time you spent preparing this very informative post, and I&#8217;m particularly impressed by your attention to detail and willingness to address our comments.</p>
<p>I have been designing an Excel application that utilizes a very, very heavy userform, replete with 8 different tabs probably 100+ controls (many of which are added dynamically at runtime, depending on user input). The only controls i&#8217;m using at the moment are the default Microsoft Forms 2.0, the reason being that they are free (albeit a little antiquated). I&#8217;m developing in Excel 2003, but also testing simultaneously in 07 and 10.</p>
<p>I have faced the frustrating issue not with RefEdit but with ListBox instead, when setting the RowSource property. Unspecified error, cannot set rowsource property. It&#8217;s a similar problem, with the memory issue every now and then. I have NEVER been unable to solve an issue faced while coding VBA applications, usually because someone posts about it with a resolution. But for the longest time this one eluded me. My application was unable to set the rowsource with a named range even after clearing the list, and it returned this error without any explanation.</p>
<p>I have solved the problem for my particular case.</p>
<p>What I attempted is a risk, because I am altering files in the C:\Windows\System32 directory on which the Office programs depend for functioning. But it worked for me. I&#8217;m operating on Win XP Professional, using MS Office 2003 AND 2010 installed on the same system.</p>
<p>There are two files of interest in that directory. One is called &#8220;FM20.DLL&#8221; and the other &#8220;FM20ENU.DLL&#8221;. I would assume the latter file is an English-only version, and may not exist in others&#8217; systems. My contention is that MS screwed up these files somehow when they published the newer versions of Office. Don&#8217;t ask me how, or why, or what exactly these files do. To my judgment, they are the setup/config files for all of the default userform controls used by VBA userforms. Probably set the memory allocation for them.</p>
<p>Anyway, I found that when I had Excel 07 and 10 installed on the system, even if I was using 2003, the application would fail when trying to set the row source property.  I took the following steps to resolve:</p>
<p>1. I uninstalled all office versions. Rebooted.</p>
<p>2. I re-installed 2003 and took a look in the System32 folder, and noticed that these files were last modified in 2010, meaning that they remained left over from the Office 10 installation.</p>
<p>3. I copied these files to the desktop only for back-up purposes.</p>
<p>4. I deleted these two files. Excel should be closed.</p>
<p>5. I opened up MS Excel 2003, and it greeted me with an installation screen before fully opening up. It installed something successfully.</p>
<p>6. I opened up the C\Windows\System32 directory and looked for those two files. They had a date modified of 2007. Good news. Vintage.</p>
<p>7. I copied them to a separate folder in my desktop for back-up.</p>
<p>8. I installed Office 10 and looked again and saw that the two files had a date modified of 2010. I replaced these files with the backups of the 2007 files (which were installed by 2003). </p>
<p>I now have no issues with unspecified errors in my userforms. At your own risk, perhaps give that a try. Worked for me for a similar issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://peltiertech.com/WordPress/unspecified-painfully-frustrating-error/comment-page-1/#comment-172875</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Thu, 12 Jan 2012 15:06:44 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=2137#comment-172875</guid>
		<description>Guillaume -

Apparently the VBA developer used a special control which is not part of the Office VBA package but instead came from Visual Studio. This can be done, of course, but different installations may store the VS components in different places. So again, the problem is a dialog (UserForm) using a control that VBA can&#039;t find or can&#039;t implement.

Fortunately you were able to find the component and fix the problem.</description>
		<content:encoded><![CDATA[<p>Guillaume -</p>
<p>Apparently the VBA developer used a special control which is not part of the Office VBA package but instead came from Visual Studio. This can be done, of course, but different installations may store the VS components in different places. So again, the problem is a dialog (UserForm) using a control that VBA can&#8217;t find or can&#8217;t implement.</p>
<p>Fortunately you were able to find the component and fix the problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guillaume BARRIO</title>
		<link>http://peltiertech.com/WordPress/unspecified-painfully-frustrating-error/comment-page-1/#comment-172857</link>
		<dc:creator>Guillaume BARRIO</dc:creator>
		<pubDate>Thu, 12 Jan 2012 13:58:33 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=2137#comment-172857</guid>
		<description>Okay,

I am no VBA expert but had this &quot;painful&quot; error occurring on one computer belonging to an user working in my company.

She needed to generate report from a macro workbook.

I could isolate the issue when I tried to run the modules one by one. I could pop this error message very easily when I tried to run an &quot;UserForm&quot; from the VBA project.

This UserForm is called when they click on a button in the spreadsheet after they filled the criteria they need. It launches a &quot;ComboBox&quot; in which are reported the criteria they previously written in the cells.

I followed this solution :
In the VBA editor, stop the VBA Project then open Tools&gt;References and Browse for a *.ocx ==&gt; C:\windows\system32\mscomct2.ocx

Then save the file.

The error message no longer popped to our sad faces...

Maybe this is irrelevant for you now but thought nice to let a comment on this.</description>
		<content:encoded><![CDATA[<p>Okay,</p>
<p>I am no VBA expert but had this &#8220;painful&#8221; error occurring on one computer belonging to an user working in my company.</p>
<p>She needed to generate report from a macro workbook.</p>
<p>I could isolate the issue when I tried to run the modules one by one. I could pop this error message very easily when I tried to run an &#8220;UserForm&#8221; from the VBA project.</p>
<p>This UserForm is called when they click on a button in the spreadsheet after they filled the criteria they need. It launches a &#8220;ComboBox&#8221; in which are reported the criteria they previously written in the cells.</p>
<p>I followed this solution :<br />
In the VBA editor, stop the VBA Project then open Tools&gt;References and Browse for a *.ocx ==&gt; C:\windows\system32\mscomct2.ocx</p>
<p>Then save the file.</p>
<p>The error message no longer popped to our sad faces&#8230;</p>
<p>Maybe this is irrelevant for you now but thought nice to let a comment on this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob Flanagan</title>
		<link>http://peltiertech.com/WordPress/unspecified-painfully-frustrating-error/comment-page-1/#comment-106086</link>
		<dc:creator>Bob Flanagan</dc:creator>
		<pubDate>Tue, 21 Jun 2011 19:51:13 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=2137#comment-106086</guid>
		<description>Jon, just an update.  I have seen a fair number of &quot;out of memory&quot; errors, with the error appearing randomly as the macros run.  The primary cause appears to be:

1) COM add-ins.  Adobe and BlueTooth sneak into Excel. Others are third party trial add-ins.  As far as I can tell, any COM add-in is bad news.

2) Trying to run Office and windows 7 with just 2 gig of memory.  4 gig is marginal.  8 is nice.

3) Running 64 bit Excel and any other Office application at the same time.  Three instances.</description>
		<content:encoded><![CDATA[<p>Jon, just an update.  I have seen a fair number of &#8220;out of memory&#8221; errors, with the error appearing randomly as the macros run.  The primary cause appears to be:</p>
<p>1) COM add-ins.  Adobe and BlueTooth sneak into Excel. Others are third party trial add-ins.  As far as I can tell, any COM add-in is bad news.</p>
<p>2) Trying to run Office and windows 7 with just 2 gig of memory.  4 gig is marginal.  8 is nice.</p>
<p>3) Running 64 bit Excel and any other Office application at the same time.  Three instances.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://peltiertech.com/WordPress/unspecified-painfully-frustrating-error/comment-page-1/#comment-37085</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Fri, 09 Jul 2010 14:30:00 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=2137#comment-37085</guid>
		<description>Hi Nicklas -

Another frustrating Microsoft Moment. Glad you figured it out in time to answer a flurry of frantic phone calls from your users.</description>
		<content:encoded><![CDATA[<p>Hi Nicklas -</p>
<p>Another frustrating Microsoft Moment. Glad you figured it out in time to answer a flurry of frantic phone calls from your users.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

