<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Com Exception Error when Automating Excel from VB.Net</title>
	<link>http://www.blog.methodsinexcel.co.uk/2007/12/21/com-exception-error-when-automating-excel-from-vbnet/</link>
	<description></description>
	<pubDate>Fri, 21 Nov 2008 20:28:32 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.1</generator>

	<item>
		<title>by: Robert Sams</title>
		<link>http://www.blog.methodsinexcel.co.uk/2007/12/21/com-exception-error-when-automating-excel-from-vbnet/#comment-42084</link>
		<pubDate>Sun, 30 Mar 2008 17:44:39 +0000</pubDate>
		<guid>http://www.blog.methodsinexcel.co.uk/2007/12/21/com-exception-error-when-automating-excel-from-vbnet/#comment-42084</guid>
					<description>just try this 

        Dim xlApp As Excel.Application
        Dim xlWorkBook As Excel.Workbook
        Dim xlWorkSheet As Excel.Worksheet
        Dim misValue As Object = System.Reflection.Missing.Value

        xlApp = New Excel.ApplicationClass
        xlWorkBook = xlApp.Workbooks.Add(misValue)
        xlWorkSheet = xlWorkBook.Sheets(&quot;sheet1&quot;)
        xlWorkSheet.Cells(1, 1) = &quot;http://vb.net-informations.com&quot;
        xlWorkSheet.SaveAs(&quot;C:\vbexcel.xlsx&quot;)

        xlWorkBook.Close()
        xlApp.Quit()

i got it from 

http://vb.net-informations.com/excel-2007/vb.net_excel_2007_create_file.htm

check it

rbt.</description>
		<content:encoded><![CDATA[<p>just try this </p>
<p>        Dim xlApp As Excel.Application<br />
        Dim xlWorkBook As Excel.Workbook<br />
        Dim xlWorkSheet As Excel.Worksheet<br />
        Dim misValue As Object = System.Reflection.Missing.Value</p>
<p>        xlApp = New Excel.ApplicationClass<br />
        xlWorkBook = xlApp.Workbooks.Add(misValue)<br />
        xlWorkSheet = xlWorkBook.Sheets(&#8221;sheet1&#8243;)<br />
        xlWorkSheet.Cells(1, 1) = &#8220;http://vb.net-informations.com&#8221;<br />
        xlWorkSheet.SaveAs(&#8221;C:\vbexcel.xlsx&#8221;)</p>
<p>        xlWorkBook.Close()<br />
        xlApp.Quit()</p>
<p>i got it from </p>
<p><a href='http://vb.net-informations.com/excel-2007/vb.net_excel_2007_create_file.htm' rel='nofollow'>http://vb.net-informations.com/excel-2007/vb.net_excel_2007_create_file.htm</a></p>
<p>check it</p>
<p>rbt.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: hueymanchew</title>
		<link>http://www.blog.methodsinexcel.co.uk/2007/12/21/com-exception-error-when-automating-excel-from-vbnet/#comment-32051</link>
		<pubDate>Sat, 22 Dec 2007 11:30:47 +0000</pubDate>
		<guid>http://www.blog.methodsinexcel.co.uk/2007/12/21/com-exception-error-when-automating-excel-from-vbnet/#comment-32051</guid>
					<description>In Excel IDE's object browser Text property of Range object is described as read-only, which explains IMO why it does not work for you.</description>
		<content:encoded><![CDATA[<p>In Excel IDE&#8217;s object browser Text property of Range object is described as read-only, which explains IMO why it does not work for you.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
