<?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: Excel VBA Open Workbook: Easily Open Excel Files In VBA With These 2 Methods And Macros	</title>
	<atom:link href="https://powerspreadsheets.com/vba-open-workbook/feed/" rel="self" type="application/rss+xml" />
	<link>https://powerspreadsheets.com/vba-open-workbook/</link>
	<description>Excel and VBA tutorials and training. Learn how to use Microsoft Excel and Visual Basic for Applications now.</description>
	<lastBuildDate>Sat, 17 Feb 2024 16:43:16 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		By: Co Vink		</title>
		<link>https://powerspreadsheets.com/vba-open-workbook/#comment-775</link>

		<dc:creator><![CDATA[Co Vink]]></dc:creator>
		<pubDate>Sat, 17 Feb 2024 16:43:16 +0000</pubDate>
		<guid isPermaLink="false">https://powerspreadsheets.com/?p=3646#comment-775</guid>

					<description><![CDATA[I am interested in openen Excel workbook files with a VBA command, in order to do a some Formatting and additional analyses in each of a series of equivalent Excel files, I have read with interest your above explanation for opening a file in VBA.

My own attempts to use the &lt;strong&gt;Workbooks.Open Filename&lt;/strong&gt; command with a string-variable: NameFile=Filepath/folder/subfoler/filename.extesion failed due to Error in PathOfFile and/or NameOfFile. I checked everything and found that the &lt;strong&gt;PathOfFile &#038; NameOfFile&lt;/strong&gt;, as concatenated strings, were correct. 

I also tried it with a Char(34) concatenated in front and at the end of the string, which gave the same error again.
As VBA does not give much explanation about the reason for the error, I started with a search at internet and found your contribution, so I implemented your solution in a macro aaOpenWerkboek() (Werkboek is Dutch).

When running this program, an error message appeared when executing the Application.GetOpenFilename command, as is illustrated in the attached screenshot.
The information which is shown after clicking the Help button does not really help me to find out what causes the error.

One more detail is that I run VBA at a Mac.

I am very interested to hear your conclusion about the problem I encountered. Thank you in advance.]]></description>
			<content:encoded><![CDATA[<p>I am interested in openen Excel workbook files with a VBA command, in order to do a some Formatting and additional analyses in each of a series of equivalent Excel files, I have read with interest your above explanation for opening a file in VBA.</p>
<p>My own attempts to use the <strong>Workbooks.Open Filename</strong> command with a string-variable: NameFile=Filepath/folder/subfoler/filename.extesion failed due to Error in PathOfFile and/or NameOfFile. I checked everything and found that the <strong>PathOfFile &amp; NameOfFile</strong>, as concatenated strings, were correct. </p>
<p>I also tried it with a Char(34) concatenated in front and at the end of the string, which gave the same error again.<br />
As VBA does not give much explanation about the reason for the error, I started with a search at internet and found your contribution, so I implemented your solution in a macro aaOpenWerkboek() (Werkboek is Dutch).</p>
<p>When running this program, an error message appeared when executing the Application.GetOpenFilename command, as is illustrated in the attached screenshot.<br />
The information which is shown after clicking the Help button does not really help me to find out what causes the error.</p>
<p>One more detail is that I run VBA at a Mac.</p>
<p>I am very interested to hear your conclusion about the problem I encountered. Thank you in advance.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Henk Huiting		</title>
		<link>https://powerspreadsheets.com/vba-open-workbook/#comment-98</link>

		<dc:creator><![CDATA[Henk Huiting]]></dc:creator>
		<pubDate>Fri, 25 Nov 2016 19:17:00 +0000</pubDate>
		<guid isPermaLink="false">https://powerspreadsheets.com/?p=3646#comment-98</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://powerspreadsheets.com/vba-open-workbook/#comment-96&quot;&gt;Henk Huiting&lt;/a&gt;.

Hello Jorge,
That works!!
Thanks for the code and the explanation about readonlyrecommended.
Now i can open each Excel-file (if it isn&#039;t protected).
Thanks again.
Regards, Henk]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://powerspreadsheets.com/vba-open-workbook/#comment-96">Henk Huiting</a>.</p>
<p>Hello Jorge,<br />
That works!!<br />
Thanks for the code and the explanation about readonlyrecommended.<br />
Now i can open each Excel-file (if it isn&#8217;t protected).<br />
Thanks again.<br />
Regards, Henk</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Henk Huiting		</title>
		<link>https://powerspreadsheets.com/vba-open-workbook/#comment-96</link>

		<dc:creator><![CDATA[Henk Huiting]]></dc:creator>
		<pubDate>Thu, 24 Nov 2016 20:18:00 +0000</pubDate>
		<guid isPermaLink="false">https://powerspreadsheets.com/?p=3646#comment-96</guid>

					<description><![CDATA[Hello Jorge,
Thanks for lots of information. 
Is there a difference between setting a file to read-only bij Windows Explorer and save an Excel-file with the Save-as-option Read-Only?
I have saved files with the Save-as-option Read-Only or ReadOnlyRecommended. When i try to change it with Setattr to vbNormal i can&#039;t open the files as normal. They are opened as read-only.
I want to make a macro that opens an Excelfile, read some information out of this file, write it down in the file with the macro, close the opened file and open a new file. If the file is saved as Read-only, open it as read-only. If the file is saved as readonlyrecommended, open it as read-only. If the file is saved without readonly, open it as a normal file. If the file is protected by a password, than don&#039;t open the file.]]></description>
			<content:encoded><![CDATA[<p>Hello Jorge,<br />
Thanks for lots of information.<br />
Is there a difference between setting a file to read-only bij Windows Explorer and save an Excel-file with the Save-as-option Read-Only?<br />
I have saved files with the Save-as-option Read-Only or ReadOnlyRecommended. When i try to change it with Setattr to vbNormal i can&#8217;t open the files as normal. They are opened as read-only.<br />
I want to make a macro that opens an Excelfile, read some information out of this file, write it down in the file with the macro, close the opened file and open a new file. If the file is saved as Read-only, open it as read-only. If the file is saved as readonlyrecommended, open it as read-only. If the file is saved without readonly, open it as a normal file. If the file is protected by a password, than don&#8217;t open the file.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 

Served from: powerspreadsheets.com @ 2026-04-15 19:09:14 by W3 Total Cache
-->