- word教程零基础教程免费:word模板路径位置在哪里?本文介绍找到word模板路径的两种方法
- 怎么删除word空白页:Word域知识大全
- word办公软件使用教程:Word2007:纸张方向的选择
- word文档基本操作教程:如何让标尺显示和隐藏
visual basic中想要创建1至12月份工作表是很简单的,该怎么创建呢?下面我们就来看看详细的教程。
1、在工作表中,点击菜单栏【开发工具】,word制作表格教程基础入门,在其工具栏里,点击【visual basic】,进入VBA界面!
2、在VBA界面,点击菜单栏【插入】,在其下拉菜单中,点击【模块】!
3、会弹出【代码编辑】窗口!
4、在【代码编辑】窗口,输入如下代码。
Sub 新建1至12月份的工作表() Dim k% For k = 12 To 1 Step -1 Sheets.Add.Name = k & "月" Next End Sub
5、在VBA界面,点击工具栏内的[运行]按钮!
6、同时按下CTRL+F11键,返回工作薄!会发现工作薄中增加了12个工作表!比我们用鼠标单个的添加快多了吧!
以上就是VBA新建1至12月份工作表的教程,希望大家喜欢,请继续关注脚本之家。
上一篇:word文档基本操作教程:Acrobat打开的pdf怎么设置更改许可口令? 下一篇:word文档基本操作教程:VBA怎么快速创建1至12月份工作表?
郑重声明:本文版权归原作者所有,转载文章仅为传播更多信息之目的,如作者信息标记有误,请第一时间联系我们修改或删除,多谢。