VBA / Excel中行和列范围偏移量的最大值是多少? [英] What is the maximum value for row and column Range offset in VBA/Excel?

查看:213
本文介绍了VBA / Excel中行和列范围偏移量的最大值是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



如果范围(MyData),我正在使用microsft excel 2003. ).CurrentRegion.Offset(i,0).Resize(1,1).Value = Range(MyData)。CurrentRegion.Offset(i + 1,0).Resize(1,1).Value Then < h2>

当我收到此错误时,我的值为58981。



行偏移有任何限制吗? p>

感谢提前。



--- Sam

解决方案

excel 2003工作表可以有一个最多65,536行(256列)。我想你的地区加上这个极限的大偏移。


I am using microsft excel 2003. I am getting "Application-defined or object-defined error" while executing the following If statement.

If Range("MyData").CurrentRegion.Offset(i, 0).Resize(1, 1).Value = Range("MyData").CurrentRegion.Offset(i + 1, 0).Resize(1, 1).Value Then

The value of i is 58981 when I get this error.

Is there any limit on row offset ?

Thanks in Advance.

---Sam

解决方案

excel 2003 worksheets can have a maximum of 65,536 rows (by 256 columns). i guess your region plus the big offset go over this limit.

这篇关于VBA / Excel中行和列范围偏移量的最大值是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆