本文介绍了简单的VB代码突然停止工作。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经为一个工程项目工作了一段非常基本的电子表格。我用VB填充了几个图表的标题。我最近添加了一个新图表,并重复了代码,但突然之间代码停止运行,下面列出了
错误消息。
突然工作的图表中的代码停止工作以及新图表。任何想法,线索?
"运行时错误'2147467259(80004005)
对象'_Chart'的方法'Hastitle'失败
代码为
使用ActiveChart为
.HasTitle = True
。 ChartTitle.Text =" ='Insitu culv'!TitleStruct"
以
结尾
解决方案
I have been working with a pretty basic spreadsheet for some time for an engineering project. I have used VB to populate the title of several charts. I recently added a new chart and did repeated the code, but all of a sudden the code stopped running with error message listed below.
The code in charts that were working suddenly stopped working as well as the new chart. Any ideas, clues?
"Run-time error '2147467259 (80004005)
Method 'Hastitle' of object '_Chart' failed
The code was
With ActiveChart.HasTitle = True
.ChartTitle.Text = "='Insitu culv'!TitleStruct"
End With
解决方案
这篇关于简单的VB代码突然停止工作。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!