Dumping variant array to range - VBA excel error 1004
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm using vba for Excel in order to save data into an array by: Dim allPosts As Variant allPosts = Range ( "A2:J5000" ) after that I'm changing data in the allPosts array, and then I want to paste it back by: Range ( "A2:J5000" ). Value = allPosts I'm getting the error: run time error 1004 Application-defined or object-defined and the copy stops at a specific cell, when i change the string at this cell to be shorter the problem is solved. thanks 回答1: You can use a second array to store the cell lengths that are too long, and