メインコンテンツへスキップ

Excelで複数のシートを複数回コピーする方法は?

場合によっては、ブック内の指定されたワークシートのコピーまたは複数のコピーを作成する必要があります。 ExcelでXNUMXつのワークシートまたは複数のワークシートを複数回簡単にコピーするのに役立ついくつかの簡単な方法を次に示します。


[移動]または[コピー]コマンドを使用して、複数のワークシートのXNUMXつのコピーをアクティブなブックまたは別のブックに一度作成します

移動またはコピー Excelのコマンドを使用すると、ワークシートのXNUMXつのコピー、複数の特定のワークシート、またはすべてのワークシートを、一度にアクティブなブックまたは別のブックに作成できます。

1。 ワークシートをコピーする特定のワークブックで、[シート]タブバーで複数のワークシートを選択します。
Note: ホールディング CTRL キーを押すと、シートタブバーでXNUMXつずつクリックして、隣接していない複数のシートタブを選択できます。 ホールディング SHIFT キーを押すと、シートタブバーの最初のシートタブと最後のシートタブをクリックして、隣接する複数のシートタブを選択できます。

2。 シートタブバーで選択したシートタブを右クリックし、を選択します 移動またはコピー コンテキストメニューから。 スクリーンショットを参照してください:
ドキュメントコピー複数シート01

3。 の中に 移動またはコピー ダイアログボックスで、次の設定を指定してください。
(1)ワークシートのコピー先のワークブックを指定してください 予約する ドロップダウンリスト。 必要に応じて、アクティブなワークブック、別の開いているワークブック、または新しいワークブックを選択できます。
(2)コピーしたシートの位置を[シート]タブバーで指定します。既存のすべてのシートから選択できます。
(3)チェック コピーを作成する このオプションをチェックしない場合、選択したワークシートは移動先のブックに移動します。
(4)をクリックします OK

これで、選択したワークシートを指定したブックにXNUMXつだけコピーします。 これらのワークシートの複数のコピーを作成するには、操作を複数回繰り返すことができます。

アクティブなワークブックに複数のワークシートの複数のコピーを作成するには、数回クリックするだけです

一般に、複数のワークシートをコピーできます。 移動またはコピー Excelの機能。 ただし、この機能は一度にXNUMXつのコピーしか作成できません。 ここでは、Excel用のKutoolsを使用します ワークシートをコピーする ユーティリティを使用すると、数回クリックするだけで、アクティブなワークブックに必要な数のワークシートのコピーを簡単に作成できます。


複数のワークシートを広告コピー01

Kutools for Excel - 300 以上の必須ツールで Excel を強化します。 クレジット カードは必要なく、全機能を備えた 30 日間の無料トライアルをお楽しみください。 今すぐ入手

指定したXNUMXつのワークシートの複数のコピーをVBAコードを使用してアクティブなブックに作成します

指定したワークシートのコピーを10個作成する場合は、 移動またはコピー コマンドは時間のかかる方法であり、操作を何度も繰り返す必要があります。 ただし、次のVBAコードを使用すると、ワークシートを一度に10回すばやくコピーできます。

1。 を押し続けます Alt + F11 キー、そしてそれは開きます アプリケーション向け Microsoft Visual Basic 窓。

2に設定します。 OK をクリックします。 インセット > モジュール、モジュールウィンドウに次のコードを貼り付けます。

VBA:特定のワークシートの複数のコピーをアクティブなブックに作成します

Sub Copier ()
Dim x As Integer
x = InputBox("Enter number of times to copy Sheet1")
For numtimes = 1 To x
ActiveWorkbook.Sheets("Sheet1").Copy _
After:=ActiveWorkbook.Sheets("Sheet1")
Next
End Sub

Note:上記のコードで、「Sheet1"コピーするシートの名前。

3。 次に、 F5 コードを実行するためのキーを押すと、必要なシートのコピー数を尋ねるプロンプトボックスが表示されます。

4。 次に、をクリックします OK、指定されたワークシートがアクティブなブックに100回コピーされました。


Kutools for Excelを使用して、複数のワークシートの複数のコピーをアクティブなブックに作成します

Excelで複数のワークシートのコピーを作成するのは簡単ですが、現在のブックで複数のワークシートの複数のコピーを作成する場合は、 移動またはコピー コマンド項目を何度も繰り返します。 ワンクリックで物事を成し遂げたいですか? とともに ワークシートをコピーする サードパーティのアドインのユーティリティ Kutools for Excel、Excelでワンクリックで複数のワークシートの複数のコピーを作成することができます。

Kutools for Excel - 300 以上の必須ツールで Excel を強化します。 クレジット カードは必要なく、全機能を備えた 30 日間の無料トライアルをお楽しみください。 今すぐ入手

1に設定します。 OK をクリックします。 クツールズプラス > ワークシートをコピーする。 スクリーンショットを参照してください:

Note:クリック クツールズプラス > ワークシート > ワークシートをコピーする この機能も利用できます。

2。 で設定を適用します 複数のワークシートをコピーする ダイアログボックス:
(1)コピー元のワークシートにチェックを入れます 選択したワークシートをコピーします のセクションから無料でダウンロードできます。
(2)指定 部数.
(3)コピーされたシートの位置を決定します。たとえば、すべてのワークシートの前または後、現在のワークシートの前または後などです。
(4)をクリックします Ok

3。 チェックしたワークシートが必要に応じて複数回コピーされたことを通知するプロンプトボックスが表示されます。をクリックしてください。 OK ボタンを押して終了します。 スクリーンショットを参照してください:

この 複数のワークシートをコピーする の特徴 Kutools for Excel 数回クリックするだけで、アクティブなワークブックに指定された複数のワークシートの複数のコピーが作成されます。 無料トライアルを!


複数のワークブックから新しいワークシートに複数のワークシートのコピーをXNUMXつ作成します

Kutools for Excelがインストールされている場合は、それを適用することもできます ワークシートを組み合わせる Excelで数回クリックするだけで、複数の閉じたブックから複数のワークシートのXNUMXつのコピーを新しいブックに作成する機能。

Kutools for Excel - 300 以上の必須ツールで Excel を強化します。 クレジット カードは必要なく、全機能を備えた 30 日間の無料トライアルをお楽しみください。 今すぐ入手

1に設定します。 OK をクリックします。 クツールズプラス > 組み合わせる ワークシートの結合機能をアクティブにします。

2。 ワークシートの結合–ステップ1/3ウィザードで、 ワークブックの複数のワークシートをXNUMXつのワークシートに結合します オプションをクリックし、 Next ボタン。 スクリーンショットを参照してください:

3。 ワークシートの結合–ステップ2/3ウィザードで、次のスクリーンショットのように実行してください。
(1)をクリック Add > File or フォルダ ワークシートを追加するには、ワークシートのコピー元を作成します。
で(2) ワークブックリスト セクションで、ワークシートをコピーするワークブックを確認します。
で(3) ワークシートリスト セクションで、コピーするワークシートを確認します。
(4)上記を繰り返す (2) & (3) コピーする他のワークブックからワークシートを選択します。
(5)をクリックします Next

4。 ワークシートの結合–ステップ3/3ウィザードで、必要に応じてコピー設定を構成し、[ 終了

5。 新しいダイアログで、新しいワークブックを保存する宛先フォルダを指定し、で新しいワークブックに名前を付けてください。 ファイル名 ボックスをクリックし、 Save ボタン。 スクリーンショットを参照してください:

これで、別のXNUMXつのダイアログボックスが表示され、新しいワークブックを開いて組み合わせシナリオを保存するように求められます。必要に応じてボタンをクリックしてください。 これまでのところ、一度に複数のワークブックから指定されたすべてのワークシートをコピーしています。

これに 組み合わせる(ワークシート) ユーティリティを使用すると、次のリストに示すように、ワークシートとワークブックを簡単にコピーして組み合わせることができます。 無料トライアルを!
(1)複数のワークシート/ワークブックの範囲をXNUMXつのワークシートにすばやく結合します。
(2)ワークブック全体で同じ名前のすべてのワークシートをすばやくマージ/結合してXNUMXつのワークシートにします。
(3)ワークシートまたはワークブックをXNUMXつのワークブックにすばやくマージ/結合します。
(4)複数のワークシートのデータをXNUMXつのワークシートにすばやく要約/計算します。

最高のオフィス生産性向上ツール

🤖 Kutools AI アシスタント: 以下に基づいてデータ分析に革命をもたらします。 インテリジェントな実行   |  コードを生成  |  カスタム数式の作成  |  データを分析してグラフを生成する  |  Kutools関数を呼び出す...
人気の機能: 重複を検索、強調表示、または識別する   |  空白行を削除する   |  データを失わずに列またはセルを結合する   |   数式なしのラウンド ...
スーパールックアップ: 複数の基準の VLookup    複数の値の VLookup  |   複数のシートにわたる VLookup   |   ファジールックアップ ....
詳細ドロップダウン リスト: ドロップダウンリストを素早く作成する   |  依存関係のドロップダウン リスト   |  複数選択のドロップダウンリスト ....
列マネージャー: 特定の数の列を追加する  |  列の移動  |  Toggle 非表示列の表示ステータス  |  範囲と列の比較 ...
注目の機能: グリッドフォーカス   |  デザインビュー   |   ビッグフォーミュラバー    ワークブックとシートマネージャー   |  リソースライブラリ (自動テキスト)   |  日付ピッカー   |  ワークシートを組み合わせる   |  セルの暗号化/復号化    リストごとにメールを送信する   |  スーパーフィルター   |   特殊フィルター (太字/斜体/取り消し線をフィルター...) ...
上位 15 のツールセット12 テキスト ツール (テキストを追加, 文字を削除する、...)   |   50+ チャート 種類 (ガントチャート、...)   |   40+ 実用的 (誕生日に基づいて年齢を計算する、...)   |   19 挿入 ツール (QRコードを挿入, パスから画像を挿入、...)   |   12 変換 ツール (数字から言葉へ, 通貨の換算、...)   |   7 マージ&スプリット ツール (高度な結合行, 分割セル、...)   |   ... もっと

Kutools for Excel で Excel スキルを強化し、これまでにない効率を体験してください。 Kutools for Excelは、生産性を向上させ、時間を節約するための300以上の高度な機能を提供します。  最も必要な機能を入手するにはここをクリックしてください...

説明


Officeタブは、タブ付きのインターフェイスをOfficeにもたらし、作​​業をはるかに簡単にします

  • Word、Excel、PowerPointでタブ付きの編集と読み取りを有効にする、パブリッシャー、アクセス、Visioおよびプロジェクト。
  • 新しいウィンドウではなく、同じウィンドウの新しいタブで複数のドキュメントを開いて作成します。
  • 生産性を 50% 向上させ、毎日何百回もマウス クリックを減らすことができます!
Comments (25)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
I am new to this I am just trying to make copies of the same sheet this is the code I am using. Sub Copier() Dim s As String Dim numtimes As Integer Dim numCopies As Integer numCopies = InputBox("How many copies do you need?") s = InputBox("Enter the name of the Worksheet you want to copy") For numtimes = 1 To numCopies ActiveWorkbook.Sheets(s).Copy _ After:=ActiveWorkbook.Sheets(Worksheets.Cou nt) Next End Sub when i use the code it gives me the error of "Syntax Error" then this text turns red ActiveWorkbook.Sheets(s).Copy _ After:=ActiveWorkbook.Sheets(Worksheets.Cou nt) and the is text turns yellow Sub Copier() what can i do to fix it.
This comment was minimized by the moderator on the site
Working Code

Sub Copier()
Dim s As String
Dim numtimes As Integer
Dim numCopies As Integer
numCopies = InputBox("How many copies do you need?")
s = InputBox("Enter the name of the Worksheet you want to copy")
For numtimes = 1 To numCopies
ActiveWorkbook.Sheets(s).Copy After:=ActiveWorkbook.Sheets(Worksheets.Count)
Next
End Sub

copy the entire line from ActiveWorkbook.Sheets...... that was the problem, and some spaces

Have a great day
This comment was minimized by the moderator on the site
[quote]I am new to this I am just trying to make copies of the same sheet this is the code I am using. Sub Copier() Dim s As String Dim numtimes As Integer Dim numCopies As Integer numCopies = InputBox("How many copies do you need?") s = InputBox("Enter the name of the Worksheet you want to copy") For numtimes = 1 To numCopies ActiveWorkbook.Sheets(s).Copy _ After:=ActiveWorkbook.Sheets(Worksheets.Cou nt) Next End Sub when i use the code it gives me the error of "Syntax Error" then this text turns red ActiveWorkbook.Sheets(s).Copy _ After:=ActiveWorkbook.Sheets(Worksheets.Cou nt) and the is text turns yellow Sub Copier() what can i do to fix it.By Tyler Dempsey[/quote] Here is the exact code you want to use: Sub Copier() Dim s As String Dim numtimes As Integer Dim numCopies As Integer numCopies = InputBox("How many copies do you need?") s = InputBox("Enter the name of the Worksheet you want to copy") For numtimes = 1 To numCopies ActiveWorkbook.Sheets(s).Copy _ After:=ActiveWorkbook.Sheets(Worksheets.Count) Next End Sub
This comment was minimized by the moderator on the site
Thank you, the last one saved my life :)
This comment was minimized by the moderator on the site
[quote]I am new to this I am just trying to make copies of the same sheet this is the code I am using. Sub Copier() Dim s As String Dim numtimes As Integer Dim numCopies As Integer numCopies = InputBox("How many copies do you need?") s = InputBox("Enter the name of the Worksheet you want to copy") For numtimes = 1 To numCopies ActiveWorkbook.Sheets(s).Copy _ After:=ActiveWorkbook.Sheets(Worksheets.Cou nt) Next End Sub when i use the code it gives me the error of "Syntax Error" then this text turns red ActiveWorkbook.Sheets(s).Copy _ After:=ActiveWorkbook.Sheets(Worksheets.Cou nt) and the is text turns yellow Sub Copier() what can i do to fix it.By Tyler Dempsey[/quote] Double check your code and make sure you don't have a space at ActiveWorkbook. Sheets(s).Copy _ or at Sheets(Worksheets.Cou nt)
This comment was minimized by the moderator on the site
Fantastic VBA code - really helped
This comment was minimized by the moderator on the site
When I first tried it, I got the error message because I didn't change the name Sheet1. After I realized what caused the error, I researched a little further, as I did not want to be manually entering the sheet name into the macro. And when I need this feature, it is almost always for the current sheet. I added the line a = activesheet.name And revised the line after:=activeworkbook.sheets("sheet1") to activeworkbook.sheets(a).copy _ That worked very well, but I did notice the numbering was reversed ... that didn't bother me as I was going to manually rename the new sheets anyway. When I saw Schuyler's post, I further revised the line activeworkbook.sheets(a).copy _ to after:=activeworkbook.sheets(worksheets.count) I am now satisfied with the result. My finished macro: Sub copies() Dim x As Integer x = InputBox("Enter number of times to copy Sheet1") For numtimes = 1 To x ActiveWorkbook.Sheets("Sheet1").Copy _ After:=ActiveWorkbook.Sheets(Worksheets.Count) Next End Sub --- All the best, Barry
This comment was minimized by the moderator on the site
i got syntax error on "After:=ActiveWorkbook.Sheets(Worksheets.Count)


but i dunno whats wrong... Can u help me please?
This comment was minimized by the moderator on the site
Thank you so much Barry. Your finished macro is the only thing that worked for me.
This comment was minimized by the moderator on the site
where i will insert this above code in vba should i create common button then inside ?? regards.
This comment was minimized by the moderator on the site
Follow the below steps:
1. Copy the above code
2. Hold down the ALT + F11 keys, and it opens the Microsoft Visual Basic for Applications window.
2. Click Insert > Module, and paste the following code in the Module Window.
4.Then press F5 key to run the code
5.A prompt box appears to ask you the number of sheet copies you want.
This comment was minimized by the moderator on the site
I get an error that 'numtimes' is not defined...?
This comment was minimized by the moderator on the site
I got the same error as Theou and no one seems to have addressed it. My tabs are already named PO 51, PO 52, etc. and I replaced Sheet1 with PO 51 to copy that and got the subscript error out of range (9) I followed Schuyler's code to get the right order, but I still get the error and it's always due to these two lines: ActiveWorkbook.Sheets(s).Copy _ Before:=ActiveWorkbook.Sheets(Worksheets.Count)
This comment was minimized by the moderator on the site
[quote]I got the same error as Theou and no one seems to have addressed it. My tabs are already named PO 51, PO 52, etc. and I replaced Sheet1 with PO 51 to copy that and got the subscript error out of range (9) I followed Schuyler's code to get the right order, but I still get the error and it's always due to these two lines: ActiveWorkbook.Sheets(s).Copy _ Before:=ActiveWorkbook.Sheets(Worksheets.Count)By Debbi[/quote] Can you include your complete code to make it easier to debug? A "subscript error out of range" usually means that the code references something that doesn't exist. I find this in my own code when I've got a typo or something of that nature.
This comment was minimized by the moderator on the site
how to copy with same column widths
This comment was minimized by the moderator on the site
Same column widths as the original Worksheet or do you want all of the column widths to be the same?
This comment was minimized by the moderator on the site
yes it works thanks I have successfully make multiple copies of a single worksheet in same workbook by using vba code thnx a lot.
This comment was minimized by the moderator on the site
Search for word "After" and change it to "Before". This will create copies in right order "Before" Sheet1. The only thing to rememeber is that numbering will always start from (2) as the original sheet will always be counted as 1st copy. Also you can replace "Sheet1" with name of the tab you are trying to copy.
This comment was minimized by the moderator on the site
[quote]Using the VBA code, the naming of the duplicated worksheets is in reverse order. Let's say I make 10 copies of Sheet1, I'll end up with Sheet1, Sheet1(10), Sheet1(9), Sheet1(8),.......is it possible to have them in normal order?By MichaelTadashi[/quote] Anyone was able to answer this question? I need to create 72 copies, but it would be needed to have them in order (1 throught 72, intead of 72 through 1) Thanks!
This comment was minimized by the moderator on the site
[quote][quote]Using the VBA code, the naming of the duplicated worksheets is in reverse order. Let's say I make 10 copies of Sheet1, I'll end up with Sheet1, Sheet1(10), Sheet1(9), Sheet1(8),.......is it possible to have them in normal order?By juan[/quote] Anyone was able to answer this question? I need to create 72 copies, but it would be needed to have them in order (1 throught 72, intead of 72 through 1) Thanks!By MichaelTadashi[/quote]e] If you want the sheet copies to be in sequential order instead of backwards, change the following line... After:=ActiveWorkbook.Sheets("Sheet1") to this... After:=ActiveWorkbook.Sheets(Worksheets.Count) My completed code looked like the following which uses 2 InputBox prompts to allow for a dynamic copy count and worksheet name.. Sub Copier() Dim s As String Dim numtimes As Integer Dim numCopies As Integer numCopies = InputBox("How many copies do you need?") s = InputBox("Enter the name of the Worksheet you want to copy") For numtimes = 1 To numCopies ActiveWorkbook.Sheets(s).Copy _ After:=ActiveWorkbook.Sheets(Worksheets.Count) Next End Sub
This comment was minimized by the moderator on the site
How do i get the coppies continuous numbered. If the sheet i want to copy is named I002, and i want the next to be named I003,I004,I005 an so on.
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations