提示:其他語言是Google翻譯的。 你可以訪問 English 版本。
登入
x
or
x
x
註冊
x

or

如何在Excel中的單元格中快速插入圖紙名稱?

有沒有簡單的方法將當前工作表的名稱插入到一個單元格中? 如何在單元格中插入所有工作表的名稱? 本文將為您解決這些問題帶來棘手的方法。

在具有功能的單元格中快速插入當前表單名稱

用VBA快速插入單元格中的所有表格名稱

使用Kutools for Excel快速插入活動工作表的名稱 好idea3

將所有帶有超鏈接的圖紙名稱作為索引快速插入單元格中 好idea3


好插入工作簿信息

Kutools for Excel's 插入工作簿信息 實用程序可以快速插入表名,路徑,用戶名和
所以一個單元格,頁眉或頁腳。
doc 1
Office選項卡在Office中啟用選項卡式編輯和瀏覽,使您的工作更輕鬆......
Kutools for Excel解決了您的大多數問題,並使您的生產率提高了80%
  • 重用任何東西: 將最常用或最複雜的公式,圖表和其他任何內容添加到您的收藏夾中,並在將來快速重複使用它們。
  • 超過20文本功能: 從文本字符串中提取數字; 提取或刪除部分文字; 將數字和貨幣轉換為英文單詞。
  • 合併工具:將多個工作簿和工作表合二為一; 合併多個單元格/行/列,而不會丟失數據; 合併重複的行和總和。
  • 拆分工具:根據價值將數據分割成多個工作表; 一本工作簿可轉換為多個Excel,PDF或CSV文件; 一列到多列。
  • 粘貼跳過 隱藏/過濾行; 數和總和 按背景顏色; 將個性化電子郵件批量發送給多個收件人。
  • 超級過濾器: 創建高級過濾方案並應用於任何工作表; 分類 按週,日,頻率等; 過濾 通過大膽,公式,評論......
  • 超過300強大的功能; 與Office 2007-2019和365一起使用; 支持所有語言; 在您的企業或組織中輕鬆部署。

箭頭藍色右泡 在具有功能的單元格中快速插入當前表單名稱


只需輸入公式 = RIGHT(CELL(“文件名”,D2),LEN(CELL(“文件名”,D2)) - FIND(“]”,CELL(“文件名”,D2))) 在任何細胞和新聞 輸入 鍵,它會在單元格中顯示當前工作表的名稱。
DOC-插入表名 - 到 -  cells1

此公式只能顯示當前工作表的名稱,而不能顯示其他工作表的名稱。

式 再也不用擔心Excel中長的公式了! Kutools for Excel's 自動文本 可以將所有公式添加到組中
作為自動文本,並解放你的大腦! 點擊這裡了解自動文本 點擊這裡獲得免費試用

箭頭藍色右泡 用VBA快速插入單元格中的所有表格名稱

如果要插入單元格中的所有圖紙名稱,VBA宏是一個不錯的選擇。

步驟1:按住 其他 + F11 在Excel中的鍵,它打開 Microsoft Visual Basic for Applications 窗口。

步驟2:點擊 插入 > 模塊,並將下面的宏粘貼到模塊窗口中。

用於在單元格中插入所有工作表名稱的VBA:

Sub SheetNames()
列(1).Insert
對於i = 1 To Sheets.Count
單元格(i,1)=表單(i).Name
接下來,我
END SUB

步驟3:按下 F5 鍵來運行這個宏。 然後,您將所有工作表的名稱列在當前工作表的A列中。 看截圖:
DOC-插入表名 - 到 -  cells2

備註:在VBA代碼中,您可以更改 單元格(i,1) 以其他參考插入表格名稱在其他單元格開始。 例如,從C3開始插入圖紙名稱,將其更改為 單元格(i + 2,3).


箭頭藍色右泡 使用Kutools for Excel快速插入活動工作表的名稱

如果要將活動工作表的信息(包括工作表名稱,工作簿名稱,文件路徑等)插入到單元格或頁眉/頁腳中,可以使用 Kutools for Excel插入工作簿信息.

Kutools for Excel, 與以上 300 方便的功能,讓您的工作更輕鬆。

免費安裝 Kutools for Excel,請按照以下步驟操作:

1。 選擇一個單元格或範圍來放置圖紙名稱,然後單擊 企業 > 工作簿 > 插入工作簿信息.doc插入工作表信息1

2。 然後選擇您需要插入的工作簿信息 資訊 部分,並指定要放置信息的位置 插入 部分。 然後點擊 OK.

doc 1

您可以點擊此處了解有關插入工作簿信息的更多信息。

箭頭藍色右泡 將工作簿信息插入單元格/頁眉/頁腳


箭頭藍色右泡 將所有帶有超鏈接的圖紙名稱作為索引快速插入單元格中

Kutools for Excel's 創建圖紙名稱列表 實用工具不僅可以將所有工作表名稱插入到單元格中,還可以將超鏈接插入到相應的工作表中。

Kutools for Excel, 與以上 300 方便的功能,讓您的工作更輕鬆。

免費安裝 Kutools for Excel,請按照以下步驟操作:

步驟1:點擊 企業 > 工作表工具 > 創建圖紙名稱列表。
DOC-插入表名 - 到 -  cells3

步驟2:在 創建圖紙名稱列表 對話框中,根據需要指定設置,然後單擊 OK.
DOC-插入表名 - 到 -  cells4

然後,您將看到所有工作表名稱都插入到新的工作表中,並且每個工作表名稱都鏈接到相應的工作表。 請參閱以下屏幕截圖:

帶有超鏈接的工作表名稱
帶有宏按鈕的工作表名稱
DOC-插入表名 - 到 -  cells5
DOC-插入表名 - 到 -  cells6

創建圖紙名稱列表 實用程序使您可以輕鬆地在新工作表中創建活動工作簿的所有工作表名稱的列表,其中包含用於快速導航到其他工作表的超鏈接或宏按鈕。 點擊了解更多關於這個實用程序。

箭頭藍色右泡 列出所有帶有超鏈接的表格名稱



Kutools for Excel:300 +函數您必須在Excel中, 從這裡60天免費試用

輕鬆將多個工作表/工作簿合併到一張工作表或工作簿中

將多個工作表或工作簿合併為一個工作表或工作簿可能在Excel中很有用,但使用 結合 在Kutools for Excel中,您可以將數十個工作表/工作簿合併到一個工作表或工作簿中,也可以通過單擊幾下將工作表合併為一個工作表。 強>單擊可獲得全功能的30天免費試用!
結合床單
Kutools for Excel:擁有超過300個方便的Excel加載項,可以在30天內免費試用,沒有限制。

Kutools for Excel解決了您的大多數問題,並使您的生產率提高了80%

  • 重用: 快速插入 複雜的公式,圖表 以及你以前用過的任何東西; 加密單元格 密碼; 創建郵件列表 並發送電子郵件...
  • 超級方程式酒吧 (輕鬆編輯多行文字和公式); 閱讀佈局 (輕鬆讀取和編輯大量單元格); 粘貼到過濾範圍...
  • 合併單元格/行/列 不丟失數據; 分裂細胞含量; 組合重複的行/列...防止重複的細胞; 比較範圍...
  • 選擇複製或唯一 行; 選擇空行 (所有細胞都是空的); 超級查找和模糊查找 在許多工作簿中; 隨機選擇......
  • 精確複製 多個單元格而不更改公式參考; 自動創建參考 多張表; 插入項目符號,複選框等等......
  • 提取文本,添加文本,按位置刪除, 刪除空間; 創建和打印分頁小計; 在單元格內容和註釋之間轉換...
  • 超級過濾器 (將過濾方案保存並應用到其他工作表); 高級排序 按月/週/日,頻率等; 特殊過濾器 用粗體,斜體......
  • 結合工作簿和工作表; 根據鍵列合併表; 將數據拆分為多個表格; 批量轉換xls,xlsx和PDF...
  • 超過300強大的功能。 支持Office / Excel 2007-2019和365。 支持所有語言。 在您的企業或組織中輕鬆部署。 全功能30天免費試用。
kte tab 201905

Office選項卡為Office提供選項卡式界面,使您的工作更輕鬆

  • 在Word,Excel,PowerPoint中啟用選項卡式編輯和閱讀,Publisher,Access,Visio和Project。
  • 在同一窗口的新選項卡中打開並創建多個文檔,而不是在新窗口中。
  • 通過50%提高您的工作效率,每天為您減少數百次鼠標點擊!
官方底部
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Ashley Pereira · 10 months ago
    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.
  • To post as a guest, your comment is unpublished.
    RS · 1 years ago
    How do you get this formula to copy the tabnames into consecutive columns. In other words not vertically but horizontally.
    • To post as a guest, your comment is unpublished.
      John · 1 years ago
      you can copy the data entered, then paste Transpose, this converts Cols to Rows, and Rows to Cols.
  • To post as a guest, your comment is unpublished.
    Daniel · 2 years ago
    Just tried now the macro for inserting all the sheet's name in one sheet. Awesome! Thank you very much
  • To post as a guest, your comment is unpublished.
    Christina · 2 years ago
    How do you get the VBA to start in a specific cell instead of A1?
    • To post as a guest, your comment is unpublished.
      Timothy · 2 years ago
      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
    • To post as a guest, your comment is unpublished.
      Sunny · 2 years ago
      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.
  • To post as a guest, your comment is unpublished.
    Adolphles · 2 years ago
    Thanks!! this was was a great help.
  • To post as a guest, your comment is unpublished.
    Anas · 2 years ago
    Hi

    Kindly i want VBA code to insert file name in specific cell.

    Thanks
  • To post as a guest, your comment is unpublished.
    Abdul R Shaikh · 2 years ago
    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.
  • To post as a guest, your comment is unpublished.
    mohamed ahmed · 3 years ago
    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.
  • To post as a guest, your comment is unpublished.
    Elise Mansour · 3 years ago
    Can anyone help me with this:
    Create a macro that creates 10 sheets and name them Sheet1 to Sheet10 but using a loop
  • To post as a guest, your comment is unpublished.
    Manish Gupta · 3 years ago
    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
  • To post as a guest, your comment is unpublished.
    Raaj Kanchan · 4 years ago
    Thanks for the help #Macleen. It helped me a lot. Keep posting such tips. :lol:
  • To post as a guest, your comment is unpublished.
    Abhijeet · 4 years ago
    Hi, I have one issue which i am unable to solve is,
    How do i display multiple sheets name in respective cells (in list) in a single sheet only?
  • To post as a guest, your comment is unpublished.
    Andi2015 · 4 years ago
    So I entered the formula as a function as per instructions above into my spreadsheet and it works. Great, thanks! However it appears I can no longer edit the sheet name on the tab by double clicking as previously. Is this a known and deliberate side effect? How do I edit the sheet name now? I am not a VBA person so basic instructions would be appreciated. many thanks
  • To post as a guest, your comment is unpublished.
    GAP · 4 years ago
    Does anyone know if it is possible to replicate this in Google Spreadsheet?
  • To post as a guest, your comment is unpublished.
    Ahtasham · 5 years ago
    =RIGHT(CELL("filename"),LEN(CELL("filename"))-FIND("]",CELL("filename")))

    First save your file than enter this formula anywhere
    • To post as a guest, your comment is unpublished.
      James Rock · 4 years ago
      this formula you mentioned is not successful because i have many sheets in my file and whenever i apply this formula in one sheet its good but when i apply this formula in multiple sheets it gives only one sheet name in all sheets even i am not doing this while selecting all sheets.

      CORRECT METHOD IS :
      =MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,255)
  • To post as a guest, your comment is unpublished.
    Waqas Mansoor · 5 years ago
    Great! Saved my day!
  • To post as a guest, your comment is unpublished.
    Jason Griffith · 5 years ago
    Hello,
    Looks like a great site with lots of helpful information.
    I have a question but I don't know if it's possible or not.
    I'm trying to make a workbook with a lot of sheets that are linked to one master sheet. All the relevant information will be copied from the master sheet to other sheets.
    My question:
    Each sheet will named as per employee. If I type all names into one cell in the master can it be copied to the tab (name of sheet)?
    For example on the master sheet CELL D2 has 5 employees names and I will have 5 sheets titled with each employees names.
    If it's not clear what I'm trying to say I will gladly send my workbook for review.
    Many thanks for any help I receive.
  • To post as a guest, your comment is unpublished.
    Macleen · 5 years ago
    How to display the sheet names in different cell, because this code, just show the sheet names only from cell A1. I want to start it at cell A10.


    Sub SheetNames()
    Columns(1).Insert
    For i = 1 To Sheets.Count
    Cells(i, 1) = Sheets(i).Name
    Next i
    End Sub
    • To post as a guest, your comment is unpublished.
      ThaMilkMan · 3 years ago
      [quote name="Macleen"]cell A10.

      Sub SheetNames()
      Columns(1).Insert
      For i = 1 To Sheets.Count
      Cells(I + 9, 1) = Sheets(i).Name
      Next i
      End Sub[/quote]

      Please see the example within quotes to change the starting range.
  • To post as a guest, your comment is unpublished.
    NAQAASH · 5 years ago
    I have first sheet (named "DATA"), contains table(column name Location1, Location2 etc).

    Second sheet named LOCATOIN-1,

    Third sheet name LOCATION-2, and so on and so forth.

    Now, in LOCATION-1 sheet, i need to put some data from the table (from "DATA" sheet, column "Location1"). I will take data as it is i mean i will use "=".

    How to fetch this data for each sheet... kindly help
    • To post as a guest, your comment is unpublished.
      Joeh · 5 years ago
      Hi...
      I think yo can simply use copy from DATA sheet , the paste in LOCATION-1 cell as link. Or you can manually type the address such
      ='DATA'!$I$105
      where 'DATA' refer to sheet that contain source data,$I$105 refer to column I & row 105 which is a cell adress to be linked.


      [quote name="NAQAASH"]I have first sheet (named "DATA"), contains table(column name Location1, Location2 etc).

      Second sheet named LOCATOIN-1,

      Third sheet name LOCATION-2, and so on and so forth.

      Now, in LOCATION-1 sheet, i need to put some data from the table (from "DATA" sheet, column "Location1"). I will take data as it is i mean i will use "=".

      How to fetch this data for each sheet... kindly help[/quote]
  • To post as a guest, your comment is unpublished.
    Rizwan · 6 years ago
    i couldn't get this VBA's last step.