将多个8202个字符从一个单元复制到另一个单元时出错 [英] Error while copying more than 8202 characters from one cell to another
本文介绍了将多个8202个字符从一个单元复制到另一个单元时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问题 - 一旦单元格中的范围(A1),我有大约8202个字符。
Problem - I have around more than 8202 characters in once cell say Range("A1").
现在我想使用VBA将单元格(A1)的内容复制到单元格(A2)。我在下面使用代码
Now I would like to copy the content of cell(A1) to cell(A2) using VBA. I'm using below Code
Sheets("XYZ").Range("A2") = Sheets("XYZ").Range("A1")
执行代码后。它给出应用程序定义或对象定义错误!!
After the execution of the Code. It gives "Application Defined Or Object Defined Error !!"
请帮助/协助您的专家意见。
Please help/assist with your expert comments.
观察 - 如果我将A1单元格的长度减少到8202或更少,那么关于代码的工作!
Observation - If I reduce the length of "A1" cell to 8202 or less then about code works!
我很困惑请帮助。
推荐答案
将代码更改为
Sheets("XYZ").Range("A2") = Sheets("XYZ").Range("A1").Value
,它会工作。
不确定为什么 c $ c> .Value 是范围的默认属性。
Not really sure why though, as .Value
is the default property of a range.
这篇关于将多个8202个字符从一个单元复制到另一个单元时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文