Excelvba警告信息我编了一个VBA程序,先运行第一个过程,
2008-05-09 20:39:42s***
我编了一个VBA程序,先运行第一个过程,然后运行第二个过程.在运行第二个过程时会弹出系统提示信息,请问如何阻止该信息的弹出?
Sub inputData()
Dim i As Integer
Dim j As Integer
Dim k As Integer
Dim m As Integer
i = 0
j = 0
k = 1
m = 1
For j = 1 To 5 Step 1
For i = 1 To 50 Step 1
Sheets("sheet1").Cells(i, 2 * j - 1) = i
Sheets("sheet1").Cells(i, 2 * j) = i * i / m + k
Next
k = k + 10
m = m + 1
Next
End Sub
Sub try()
Dim i As Integer
Dim j As Integer
Dim X(7) As Range
Dim Y(7) As Range
Dim mySource As Range
i = 0
j = 0
With ActiveWorkbook.Sheets("sheet1")
Set X(0) = Sheets("sheet1").Columns(1)
Set Y(0) = Sheets("sheet1").Columns(2)
Set mySource = Union(X(0), Y(0))
Charts.Add
ActiveChart.ChartType = xlXYScatterSmooth
ActiveChart.SetSourceData Source:=mySource
For i = 2 To 5 Step 1
Set X(1) = .Columns(2 * i - 1)
Set Y(1) = .Columns(2 * i)
Charts(1).Activate
ActiveChart.SeriesCollection.NewSeries
ActiveChart.SeriesCollection(i).XValues = X(1)
ActiveChart.SeriesCollection(i).Values = Y(1)
Next i
End With
End SubExcelvba警告信息我编了一个VBA程序,先运行第一个过程,然后运行第二个过程.在运行第二个过程时会弹出系统提示信息,请问如何阻止该信息的弹出?Subinp?
最佳回答
2008-05-09 21:22:44
2008-05-12 10:56:45
很赞哦! (13)
相关文章
- EXCEL中执行VBA出现的一个
- Excel如何任意鼠标点击一个单
- EXCEL中VBA宏程序:自动寻
- excel数据有效性ABC15表
- ECXEL中一段VBA代码如何终
- 这是我用excel中的vba设计
- Excel的隐私问题在Excel
- 怎么通过excel使cad运行脚
- 此文档有宏,该应用程序的宏语言支
- Excel中如何用VBA得到最后
- EXCEL的VBA有2个xls文
- excel此工作簿已丢失了VBA
- 再问个有关ExcelVBA窗体的
- excel:此工作簿已丢失了其V
- VBA的一个程序大家帮我看看叙述
- excelvba与excel二者
- 在EXCEL工作簿中如何使用VB
- excelVBA编程(光标控制)
- EXCEL中VBA代码如何改进能
- 如何用vb做链接1、有一个按钮,