这个zd意思回?答Sub test() If Application.Calculation = xlManual" />
乔山办公网我们一直在努力
您的位置:乔山办公网 > excel表格制作 > <em>VBA</em>控制<em>Excel</em>自动运算-exc

<em>VBA</em>控制<em>Excel</em>自动运算-exc

作者:乔山办公网日期:

返回目录:excel表格制作




这个zd意思
Sub test()
If Application.Calculation = xlManual Then
Application.Calculation = xlAutomatic
Else
Application.Calculation = xlManual
End If
End Sub


在第三行和第四行之间插上一句:Application.Volatile True 应该就能自动更新了,如果不能的话:
Private Sub Commandbutton1_click()
Application.ScreenUpdating=False
a=Worksheets("sheet1").Cells(1, 22).Value
Worksheets("sheet1").Cells(1, 22).Value=1
Worksheets("sheet1").Cells(1, 22).Value=a
Application.ScreenUpdating=True
End Sub

相关阅读

关键词不能为空
极力推荐

ppt怎么做_excel表格制作_office365_word文档_365办公网