How to traverse files (conditionally) faster than using FileSystemObject

后端 未结 4 2022
走了就别回头了
走了就别回头了 2021-01-07 11:50

I\'ve written some VBA code using file objects to go into a folder, search for particular files (CSV) that meet certain criteria (contain \"HR\" in filename and created with

4条回答
  •  南方客
    南方客 (楼主)
    2021-01-07 12:39

    It took a long time because for each interation you pass the information to the main worksheet.

    In this case is better use a multidimensional array to keep the information and in the end of the process you pass the the array info in the main worksheet.

    I dont know what information you get in each worksheet, soo i cant create an didatical example for you.

提交回复
热议问题