运行时错误'9':下标超出范围(VisualBasic) [英] Run-time error '9': Subscript out of range (VisualBasic)

查看:367
本文介绍了运行时错误'9':下标超出范围(VisualBasic)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的先生,你好b $ b 我必须使用excel文件(在Excel 98-2003或* .xlsm中制作),它在打开后向我发送了一条错误消息。我不会创建
的文件。 (我不是VisualBasic专家。我不能写新的脚本。)其他用户没有这个问题但是 
I
总是收到此消息:    运行时错误'9':  
下标超出范围。

Dear Sir,
I must use excel files (made in Excel 98-2003, or *.xlsm) which sent me an error message after opening. Files are not created by me. (I'm not a VisualBasic specialist. I can't write new scripts.) Other user haven't such problem with that but I always get this message:   Run-time error '9':  Subscript out of range.

当然文件已打开但无法正常工作。我请求帮助,但其他人不知道这个问题。

重新安装不是解决方案,问题是最新的。


  • 何时以及为何发送此类消息?
  • 原因来源 硬件? (太慢了?记忆棒?处理器速度?运行时......)
  • 我的Excel版本是否具有缩减功能?是不是所有下标都是内置的?  

    (家庭和学生版,2016年)
  • 这是一个软件错误吗?
  • 是否也无法使用旧代
    VisualBasic  ? (兼容性?)

我可以采取措施解决这个问题吗?
b $ b有人可以帮我吗? br />
很多。

Can I do something to solve this problem?
Can somebody help me?
Thnak a lot.

推荐答案

发布行它停止的代码。

Post the line of code that it stops on.

如果没有太多代码,那么也发布整个子代码并告诉我们哪个是代码问题行。

If not too much code then also post the entire sub and tell us which is the problem line of code.

这篇关于运行时错误'9':下标超出范围(VisualBasic)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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