跳到主要內容

如何在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 for Applications 窗口,然後單擊 插入 > 模塊,將以下代碼複製並粘貼到 模塊 窗口。

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,在這裡我為您介紹一個方便的工具– Excel的Kutools,您可以使用它 複製工作表 實用程序,可快速輕鬆地創建具有相同格式的圖紙。

Excel的Kutools, 與以上 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選項卡為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