跳到主要内容

如何在Excel中快速创建具有相同格式的多个工作表?

例如,您已经创建了具有特定格式的工作表,现在您想要创建与该工作表具有相同格式的多个工作表,如何在Excel中快速解决此任务? 本教程讨论的是创建具有相同格式的多个图纸的方法。

通过移动或复制创建具有相同格式的图纸

通过VBA创建具有相同格式的图纸

通过复制 Kutools for Excel 的多个工作表创建具有相同格式的工作表 好主意3


通过移动或复制创建具有相同格式的图纸

在Excel中,可以使用“移动”或“复制”命令来创建具有与所选工作表相同格式的工作表。

1.在表格上单击所需格式的表格。 工作表标签栏,然后右键单击以选择 移动或复制 从上下文菜单中。 看截图:

具有相同格式的文档表1

2.然后在弹出的对话框中,检查 建立副本 选项。 看截图:

具有相同格式的文档表2

3。 点击 OK。 在所选工作表的前面以相同的格式创建一个新工作表。 看截图:

具有相同格式的文档表3

备注:

(1)您也可以点击 主页 > 格式 > 移动或复制工作表 使之成为可能 移动或复制 对话。

(2)当您需要创建数百张具有相同格式的图纸时,使用此方法将很耗时。


通过VBA创建具有相同格式的图纸

有一个VBA代码可以帮助您一次快速创建多个具有相同格式的图纸。

1。 按 Alt + F11键 打开钥匙 Microsoft Visual Basic应用程序 窗口,然后单击 插页 > 模块,将以下代码复制并粘贴到 模块 窗口。

VBA:创建具有相同格式的图纸。

Sub CopyWorkSheets()
'Updateby20150526
Dim xNumber As Integer
Dim xWsName As String
On Error Resume Next
xTitleId = "KutoolsforExcel"
xWsName = Application.InputBox("Copy worksheet name", xTitleId, , Type:=2)
xNumber = Application.InputBox("Copy number", xTitleId, , Type:=1)
For i = 1 To xNumber
    Application.ActiveWorkbook.Sheets(xWsName).Copy _
    After:=Application.ActiveWorkbook.Sheets(xWsName)
Next
End Sub

2。 按 F5 键运行VBA代码,然后会弹出一个对话框供您键入复制其格式所需的工作表名称。

具有相同格式的文档表4

3。 点击 OK,然后在另一个弹出对话框中指定所需的份数。 看截图:

具有相同格式的文档表5

4。 点击 OK。 然后有六个具有相同格式的工作表副本。


通过复制 Kutools for Excel 的多个工作表创建具有相同格式的工作表

如果您不喜欢使用VBA,在这里我为您介绍一个方便的工具– Kutools for Excel,您可以使用它 复制工作表 实用程序,可快速轻松地创建具有相同格式的图纸。

Kutools for Excel, 与超过 300 方便的功能,使您的工作更加轻松。 

免费安装 Kutools for Excel,请执行以下操作:

1。 点击 Kutools 加 > 工作表 > 复制工作表。 看截图:

doc复制多个工作表1

2.在 复制多个工作表 对话框,请执行以下操作:

(1)从列表框中检查要复制其格式的工作表名称 复制所选的工作表;

(2)指定份数;

(3)指定要放置副本的位置。

具有相同格式的文档表7

3。 点击 Ok,会弹出一个对话框,提醒您已成功创建副本。 请点击 OK 关闭它。

具有相同格式的文档表8

现在,您可以看到已指定数量的具有相同格式的图纸。
doc kutools复制工作表4

单击此处了解有关复制多个工作表的更多详细信息

最佳办公生产力工具

🤖 Kutools 人工智能助手:基于以下内容彻底改变数据分析: 智能执行   |  生成代码  |  创建自定义公式  |  分析数据并生成图表  |  调用 Kutools 函数...
热门特色: 查找、突出显示或识别重复项   |  删除空白行   |  合并列或单元格而不丢失数据   |   不使用公式进行四舍五入 ...
超级查询: 多条件VLookup    多值VLookup  |   跨多个工作表的 VLookup   |   模糊查询 ....
高级下拉列表: 快速创建下拉列表   |  依赖下拉列表   |  多选下拉列表 ....
列管理器: 添加特定数量的列  |  移动列  |  切换隐藏列的可见性状态  |  比较范围和列 ...
特色功能: 网格焦点   |  设计图   |   大方程式酒吧    工作簿和工作表管理器   |  资源库 (自动文本)   |  日期选择器   |  合并工作表   |  加密/解密单元格    按列表发送电子邮件   |  超级筛选   |   特殊过滤器 (过滤粗体/斜体/删除线...)...
前 15 个工具集12 文本 工具 (添加文本, 删除字符,...)   |   50+ 图表 类型 (甘特图,...)   |   40+ 实用 公式 (根据生日计算年龄,...)   |   19 插入 工具 (插入二维码, 从路径插入图片,...)   |   12 转化 工具 (小写金额转大写, 货币兑换,...)   |   7 合并与拆分 工具 (高级组合行, 分裂细胞,...)   |   ... 和更多

使用 Kutools for Excel 增强您的 Excel 技能,体验前所未有的效率。 Kutools for Excel 提供了 300 多种高级功能来提高生产力并节省时间。  单击此处获取您最需要的功能...

产品描述


Office Tab 为 Office 带来选项卡式界面,让您的工作更加轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,发布者,Access,Visio和Project。
  • 在同一窗口的新选项卡中而不是在新窗口中打开并创建多个文档。
  • 每天将您的工作效率提高50%,并减少数百次鼠标单击!
Comments (12)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Are you able to add in code to the VBA by automatically changing the sheet name? instead of doing that manually?
This comment was minimized by the moderator on the site
Thank you SO MUCH! I've always created multiple sheets, then copy/paste the data, but that doesn't copy over the "print gridlines" formatting, which I often forget to select. The actual copy/ paste bit doesn't save me that much in actual min:sec, but it saves me so much in aggravation. I love this! I've copied your instructions and will use them every month from now on. Thank you, again!
This comment was minimized by the moderator on the site
I created a file that contains 12 sheets, one for each month. Each month should have the same page format. I finished decorating my page but when I look at each sheet, I realize that only January, March, July, and September were modified. Why did this happen? How do I fix it?
This comment was minimized by the moderator on the site
Which method you use? Both of above methods, you need to format a sheet first, then apply the methods.
This comment was minimized by the moderator on the site
I need multiple copies of the entire WORKBOOK with multiple sheets in each book.
This comment was minimized by the moderator on the site
Directly copy the workbooks and paste them in several copies with different names?
This comment was minimized by the moderator on the site
I NEED TO CREATE TIMESHEETS FOR 25 WORKERS EVERY MONTH USING 1 TIMESHEET FORMAT, HOW DO I CHANGE THE NAMES ONCE SO THAT IT PRINTS ALL 25 TIMSHEETS WITH EACH WORKERS NAME
This comment was minimized by the moderator on the site
You can use Kutools for Excel's Create Sequence Worksheet utility to solve your problem. For more details, you can refer to this site:https://www.extendoffice.com/product/kutools-for-excel/create-sequence-worksheets.html
This comment was minimized by the moderator on the site
I was hoping to do something similar, but wayyy more complicated. Do you have tips?

----
I have to create 79 tabs in excel using a standard template [see below], but that references sequential values in a separate worksheet. We will call the template worksheet "Template" and the worksheet that contains the reference values "Reference". I need help creating a macro to do the following:

1) Copy the template 79 times.


2) Name each new worksheet according to the sequential rows in column F of "Reference" (so the first copy of "Template" would have a name defined in F3 in the "Reference" sheet. the second copy of "Template" would have a name defined by F4, etc. etc. etc).


3) Set the values of cells in the new worksheets (i.e. the copies of "Template") equal to sequential rows in Column A, B, C, D, E of the worksheet "Reference", such that copy 1 of the "Template" references cells A3, B3, C3, D3 and E3; copy 2 of the "Template" references cells A4, B4, C4, D4, E4; etc.
This comment was minimized by the moderator on the site
Firstly, you can use the Split Data utility function of Kutools to split each row or the range to a separate sheet in a new workbook, then copy the column or "reference" which use to name the sheet to one of the sheet in the new workbook, and apply Rename Multiple Worksheet and check From specific range to select the cells you have copied to rename the sheets. Then remove the reference cells.
This comment was minimized by the moderator on the site
I do not why one file is missing after reply~here are the complicated screenshots, 1,3,4,5,6.
This comment was minimized by the moderator on the site
THANK YOU!! I needed 15 copies of a worksheet and it would've taken me ages to do without this. Thanks a million.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations