Link to home
Start Free TrialLog in
Avatar of kieranjcollins
kieranjcollinsFlag for Ireland

asked on

Macro, folder and sub-folder contents

Hi,

I have seen on Experts Exchange macros to list folder files, is it possible to write a macro to list folder and sub-folder contents ?

Thanks

Kieran
Avatar of gtgloner
gtgloner
Flag of Canada image

ASKER CERTIFIED SOLUTION
Avatar of Patrick Matthews
Patrick Matthews
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kieranjcollins

ASKER

Hi Matthew

The macro doesn't run and the VBA highlights "Dim FSO As Scripting.FileSystemObject".

Compile Error:
User-defined type not defined

Kieran
Matthew

I added to my VBA reference list and it worked perfect.

Thanks for the help, you deserve the points !

Thanks
Kieran
Kieran,

Glad to help.  Sorry I forgot to mention tha you needed to add the reference :)

Patrick