1、在Excel界面按ALT+F11
2、在出现的VBE界面,点击插入-模块
3、复制一下代码
Sub helloword()
MsgBox "hello word!"
End Sub
4、按F5键执行代码,这样,Excel就弹出了一个窗体