Excel中2007版使用VB创建宏的操作技巧
2017-06-15
相关话题
在office文档编辑中,当经常要重复相同的操作时,新建一个宏,让宏来完成这些重复性的工作,可以大大的减小工作的强度,也提高了工作效率,使工作变得轻松,今天,小编就教大家在Excel中2007版使用VB创建宏的操作技巧。
Excel中2007版使用VB创建宏的操作步骤
1、打开EXCEL2007,如果菜单样看不到“开发工具”选项卡,可如下操作。

2、单击“Microsoft Office 按钮”--“Excel 选项”。

3、点击“常用”--“使用 Excel 时采用的首选项”,勾选“在功能区中显示‘开发工具’选项卡”复选框,单击“确定”。

4、要保证所有宏都能够正常运行,需要点击“开发工具”选项卡,在“代码”组中,单击“宏安全性”。

5、在“宏设置”下,勾选“启用所有宏(不推荐,可能会运行有潜在危险的代码)”,然后单击“确定”。

6、在“开发工具”选项卡上的“代码”组中,单击“Visual Basic”。

7、在模块的代码窗口中,键入或复制要使用的宏代码。

8、编辑完宏后,可按“F5”试运行,调试,然后关闭并返回。
