Excel - VBA Question. Need to access data from all excel files in a directory without opening the files

前端 未结 5 911
天涯浪人
天涯浪人 2020-12-04 04:20

So I have a \"master\" excel file that I need to populate with data from excel files in a directory. I just need to access each file and copy one line from the second sheet

5条回答
  •  [愿得一人]
    2020-12-04 04:49

    At the start of your macro add

    Application.ScreenUpdating = false
    

    then at the end

    Application.ScreenUpdating = True
    

    and you won't see any files open as the macro performs its function.

提交回复
热议问题