Dear Noorain,
working fine thank you :)
regards,
venkat
Chennai 
 ----------
Sent from my Nokia phone

------Original message------
From: NOORAIN ANSARI <[email protected]>
To: <[email protected]>
Date: Thursday, March 15, 2012 11:53:07 AM GMT+0530
Subject: Re: $$Excel-Macros$$ Help:Open all excel files in folder

Dear Venkat,

Please use

First goto VB Editor and Select Tools-Reference-Microsfot Scripting Runtime
then run Macro

Change red color Folder Path...

Sub OpenFile_Of_Folder()
 Dim MyFile As File
 Dim MyFolder As Folder
 Dim fso As Scripting.FileSystemObject
 Set fso = New Scripting.FileSystemObject
 Set MyFolder = fso.GetFolder("D:\VBA_Class\")
 For Each MyFile In MyFolder.Files
 Workbooks.Open Filename:=MyFile
Next
End Sub

-- 
Thanks & regards,
Noorain Ansari
 *http://noorainansari.com/* <http://excelmacroworld.blogspot.com/>
*http://excelmacroworld.blogspot.com/*<http://excelmacroworld.blogspot.com/>
On Thu, Mar 15, 2012 at 9:35 AM, <[email protected]> wrote:

> Dear All,
>
> i want to get opened all excel files in certain folder by using vba coding.
>
>
> Regards
> venkat
> Chennai
>  ----------
> Sent from my Nokia phone
>
> --
> FORUM RULES (986+ members already BANNED for violation)
>
> 1) Use concise, accurate thread titles. Poor thread titles, like Please
> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
> will not get quick attention or may not be answered.
>
> 2) Don't post a question in the thread of another member.
>
> 3) Don't post questions regarding breaking or bypassing any security
> measure.
>
> 4) Acknowledge the responses you receive, good or bad.
>
> 5)  Cross-promotion of, or links to, forums competitive to this forum in
> signatures are prohibited.
>
> NOTE  : Don't ever post personal or confidential data in a workbook. Forum
> owners and members are not responsible for any loss.
>
>
> ------------------------------------------------------------------------------------------------------
> To post to this group, send email to [email protected]
>

-- 
FORUM RULES (986+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.

------------------------------------------------------------------------------------------------------
To post to this group, send email to [email protected]

-- 
FORUM RULES (986+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.

------------------------------------------------------------------------------------------------------
To post to this group, send email to [email protected]

Reply via email to