VBA to open several workbooks, copy specific data, remove duplicate rows and paste the information in a new workbook

柔情痞子 提交于 2019-12-02 10:19:27

replace

  wsSource.Range("B1:N" & lRow).Copy Destination:=wsTarget.Range("A" & NextRow0)

with

 wsSource.Range("B1:N" & lRow).Copy 
 wsTarget.Range("A" & NextRow0).pastespecial xlpastevalues

to turn your data from formulas (ie #REF) into values. Assuming the rest of your code works that ought to fix things

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!