Disable clipboard prompt in Excel VBA on workbook close

后端 未结 7 2222
伪装坚强ぢ
伪装坚强ぢ 2020-12-16 13:03

I have an Excel workbook, which using VBA code that opens another workbook, copies some data into the original, then closes the second workbook.

When I close the sec

7条回答
  •  别那么骄傲
    2020-12-16 13:36

    proposed solution edit works if you replace the row

    Set rDst = ThisWorkbook.Sheets("SomeSheet").Cells("YourCell").Resize(rSrc.Rows.Count, rSrc.Columns.Count)
    

    with

    Set rDst = ThisWorkbook.Sheets("SomeSheet").Range("YourRange").Resize(rSrc.Rows.Count, rSrc.Columns.Count)
    

提交回复
热议问题