I am trying to return an array of folder names without using FSO. Is there anyway Dir can be used to return folders only?
Below is code I am trying to alter to return folder names
![]()
Please Login or Register to view this content.
I am trying to return an array of folder names without using FSO. Is there anyway Dir can be used to return folders only?
Below is code I am trying to alter to return folder names
![]()
Please Login or Register to view this content.
*******************************************************
HELP WANTED! (Links to Forum threads)
Trying to create reusable code for Custom Events at Workbook (not Application) level
*******************************************************
You can And the attributes (via GetAttr) with vbDirectory to see if it's a file or folder.
Last edited by shg; 08-01-2016 at 07:44 PM.
Entia non sunt multiplicanda sine necessitate
Try this.
![]()
Please Login or Register to view this content.
Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.
@b2: Thank you.
@shg: You're welcome and many thanks for rep points.![]()
Thanks bakerman!(Reps) It works.
For anyone who found on this thread while searching for a solution, the finished code is below:
![]()
Please Login or Register to view this content.
Last edited by mc84excel; 08-09-2016 at 06:27 PM.
@ mc84excel
You're welcome and thanks for the rep points.![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks