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

Excelのセルにシート名をすばやく挿入するにはどうすればよいですか?

現在のワークシートの名前をXNUMXつのセルに挿入する簡単な方法はありますか? すべてのワークシートの名前をセルに挿入するにはどうすればよいですか? この記事では、これらの問題を解決するためのトリッキーな方法を紹介します。

機能を備えたセルに現在のシート名をすばやく挿入する

VBAを使用してセルにすべてのシート名をすばやく挿入する

Kutools forExcelでアクティブシートの名前をすばやく挿入する 良いアイデア3

ハイパーリンク付きのすべてのシート名をインデックスとしてセルにすばやく挿入します 良いアイデア3


矢印青い右バブル 機能を備えたセルに現在のシート名をすばやく挿入する

次の式を入力するだけです = RIGHT(CELL( "filename"、D2)、LEN(CELL( "filename"、D2))-FIND( "]"、CELL( "filename"、D2))) 任意のセルでを押します 入力します キーを押すと、セルに現在のワークシートの名前が表示されます。
doc-シート名をセルに挿入1

この数式は、現在のワークシートの名前のみを表示でき、他のワークシートの名前は表示できません。


矢印青い右バブル VBAを使用してセルにすべてのシート名をすばやく挿入する

すべてのシート名をセルに挿入する場合は、VBAマクロを選択することをお勧めします。

ステップ1: 他の + F11 Excelでキーを押すと、 アプリケーション向け Microsoft Visual Basic 窓。

ステップ2:クリック インセット > モジュール、モジュールウィンドウに次のマクロを貼り付けます。

すべてのワークシートの名前をセルに挿入するためのVBA:

サブSheetNames()
列(1)。挿入
i = 1 の場合 Sheets.Count へ
Cells(i、1)= Sheets(i).Name
私は次の
End Subの

ステップ3: F5 このマクロを実行するためのキー。 次に、すべてのワークシートの名前が現在のワークシートの列Aに一覧表示されます。 スクリーンショットを参照してください:
doc-シート名をセルに挿入2

Note:VBAコードでは、変更できます セル(i、1) シート名を挿入する他の参照へは、他のセルから始まります。 たとえば、C3から始まるシート名を挿入し、次のように変更します。 セル(i + 2、3).


矢印青い右バブル Kutools forExcelでアクティブシートの名前をすばやく挿入する

シート名、ワークブック名​​、ファイルパスなどのアクティブなシートの情報をセルまたはヘッダー/フッターに挿入する場合は、次を使用できます。 Kutools for Excelさん ワークブック情報を挿入する.

Kutools for Excel, 以上で 300 便利な機能は、あなたの仕事をより簡単にします。 

無料インストール Kutools for Excel、以下のようにしてください:

1.シート名を入力するセルまたは範囲を選択し、をクリックします クツールズプラス > ワークブック > ワークブック情報を挿入する.ドキュメント挿入ワークシート情報1

2.次に、挿入する必要のあるブック情報を選択します。 その他の情報 セクションをクリックし、情報を配置する場所を指定します に挿入 セクション。 次に、をクリックします OK.

doc 1

[ワークブック情報の挿入]の詳細については、ここをクリックしてください。

矢印青い右バブル ブック情報をセル/ヘッダー/フッターに挿入します


矢印青い右バブル ハイパーリンク付きのすべてのシート名をインデックスとしてセルにすばやく挿入します

Kutools for Excel's シート名のリストを作成する ユーティリティは、すべてのシート名をセルに挿入するだけでなく、対応するシートへのハイパーリンクも挿入します。

Kutools for Excel, 以上で 300 便利な機能は、あなたの仕事をより簡単にします。 

無料インストール Kutools for Excel、以下のようにしてください:

ステップ1: クツールズプラス > ワークシート > シート名のリストを作成します。
doc-シート名をセルに挿入3

ステップ2: シート名のリストを作成する ダイアログボックスで、必要に応じて設定を指定し、をクリックします OK.
doc-シート名をセルに挿入4

次に、すべてのシート名が新しいワークシートに挿入され、各シート名が対応するワークシートにリンクしていることがわかります。 次のスクリーンショットを参照してください。

ハイパーリンク付きのワークシート名
マクロボタン付きのワークシート名
doc-シート名をセルに挿入5
doc-シート名をセルに挿入6

  シート名のリストを作成する ユーティリティを使用すると、アクティブなワークブックのすべてのワークシート名のリストを新しいワークシートに簡単に作成できます。このリストには、他のワークシートにすばやく移動するためのハイパーリンクまたはマクロボタンが含まれています。 このユーティリティの詳細については、クリックしてください。

矢印青い右バブル ハイパーリンク付きのすべてのシート名を一覧表示する



Kutools for Excel:Excelに必要な300以上の関数、 ここから30日間の無料トライアル

複数のシート/ワークブックをXNUMXつのシートまたはワークブックに簡単に組み合わせる

複数のシートまたはワークブックをXNUMXつのシートまたはワークブックに結合することは、Excelでは面倒かもしれませんが、 組み合わせる Kutools for Excelの機能を使用すると、数十のシート/ワークブックをXNUMXつのシートまたはワークブックに結合できます。また、数回クリックするだけでシートをXNUMXつに統合できます。  クリックすると、全機能を備えた 30 日間の無料トライアルが可能です。
シートを組み合わせる
 
Kutools for Excel:300を超える便利なExcelアドインがあり、30日以内に制限なしで無料で試すことができます。

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

🤖 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 (32)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
how to find the sheet name (section name ) when you type employee no. in a cell? A workbook has 15 sheets named as per sections of the department.In each section has 100 employees in range A2:A101with unique employee no. I have a list of 50 employee nos in different sections. In a new work sheet how to find the section name which corresponds to the employee no.
This comment was minimized by the moderator on the site
Hello, Ashley Pereira, please visit this: https://www.extendoffice.com/documents/excel/5335-excel-vlookup-return-sheet-name.html this article may help you.
This comment was minimized by the moderator on the site
How do you get this formula to copy the tabnames into consecutive columns. In other words not vertically but horizontally.
This comment was minimized by the moderator on the site
Change the following:

Cells(i, 1) = Sheets(i).Name
to
Cells(1, i) = Sheets(i).Name

This causes to step columns in same row.
This comment was minimized by the moderator on the site
you can copy the data entered, then paste Transpose, this converts Cols to Rows, and Rows to Cols.
This comment was minimized by the moderator on the site
Just tried now the macro for inserting all the sheet's name in one sheet. Awesome! Thank you very much
This comment was minimized by the moderator on the site
How do you get the VBA to start in a specific cell instead of A1?
This comment was minimized by the moderator on the site
Just add to i like I did below. If you add to i you can start on any row you would like.

Sub GetNames()

For i = 1 To Sheets.Count

Cells(i + 6, 1) = Sheets(i).Name

Next i
End Sub
This comment was minimized by the moderator on the site
Thank u for your supplement.
This comment was minimized by the moderator on the site
You can change the number in Cells(i, 1) = Sheets(i).Name to other to insert the sheet names in other column, for instance, insert start from C1,change Cells(i, 1) = Sheets(i) to Cells(i, 3) = Sheets(i), but this VBA only can insert the sheet names start from the row 1.
This comment was minimized by the moderator on the site
Thanks!! this was was a great help.
This comment was minimized by the moderator on the site
Hi Kindly i want VBA code to insert file name in specific cell. Thanks
This comment was minimized by the moderator on the site
Great site was very helpful. I have different tab names and I get the names in one sheet using your code, but it gives names of all the tab names, is there anyway we can add code to select from certain tab number or something like that.
This comment was minimized by the moderator on the site
I have multiple project sheets database with different tab name and this name is shown in master sheet table. which formula can i give that when i insert new tab it should automatically updated in master table.
This comment was minimized by the moderator on the site
Can anyone help me with this: Create a macro that creates 10 sheets and name them Sheet1 to Sheet10 but using a loop
This comment was minimized by the moderator on the site
Hello, Can you please help me with the simple VBA code. I have a list of Names in Column A. Specific Range - (A2:A251) - Now I need to create new spreadsheets with these names. The names are driven from a different sheet, thus they keep changing. So in short, if I have 10 names today, they might not appear tomorrow. So on the click of button all older spreadsheets (except 1) should be deleted first and then from the names on the column, new ones should get created. Please advice if this is possible to do? Thanks, Manish Gupta
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