Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
I want some Extension of file from a selected folder in VBA?
Dinesh Santhalingam
7y
273
1
Reply
Set
objFSO
=
CreateObject
("Scripting.FileSystemObject")
Set
objFolder
=
objFSO
.GetFolder("D:\testing folder")
For Each objFile In objFolder.Files
MsgBox Cstr(objFile)
Next
In my folder there are so much files but i want only excel files in that folder .Please suggest some idea to solve the problem.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
how create a temp folder
Add a Combo Box in a Excel cell Using VBA