📄 objcreat.mac
字号:
Sub Test()
Dim obj
Set obj = CreateObject("Excel.Application")
If Not obj Is Nothing Then
obj.Visible = True
MsgBox "Excel is running"
obj.Quit
Set obj = Nothing
End If
Set obj = CreateObject("Word.Application")
If Not obj Is Nothing Then
obj.Visible = True
MsgBox "Word is running"
obj.Quit
Set obj = Nothing
End If
End Sub
Test
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -