
如何在Excel中輕松提取注釋內容?
在某些情況下,我們需要將單元格的注釋內容提取到單元格以更好地查看或分析,如下面的屏幕截圖所示。 但是在Excel中,沒有內置函數可以對此有所幫助。 但是,這里有一些技巧可以幫助您快速輕松地解決此問題。
使用定義的函數提取注釋內容
列出活動工作表或工作簿的所有評論內容 Kutools for Excel
使用定義的函數提取注釋內容驚人的! 在 Excel 中使用高效的選項卡,如 Chrome、Firefox 和 Safari!每天節省50%的時間,并減少數千次鼠標單擊!在Excel中,除“定義的函數”外,沒有公式可以提取注釋內容。
1。 按 Alt + F11鍵 啟用 Microsoft Visual Basic應用程序 窗口。
2。 點擊 插頁 > 模塊,將代碼復制并粘貼到空白的新模塊中。
代碼:提取注釋
Function getComment(xCell As Range) As StringUpdatebyExtendoffice20180330On Error Resume NextgetComment = xCell.Comment.TextEnd FunctionCopy3. Save the code and go back to the sheet you want to extract comment contents, type =getComment(B2) in a cell which will place the comment content at, and press Enter key. Then you can see the comment has been displayed in the cell. You can drag fill handle down to extract comments as you need.List all comment contents of active sheet or workbook with Kutools for ExcelIf you want to list all comment contents of the active sheet or current workbook, the Defined Function is not convenience. But Kutools for Excel’s Create Comment List function can quickly and easily handle this job.Kutools for Excel, with more than 300 handy functions, makes your jobs more easier.Free Downloadfree full-featured in 30 daysAfter free installing Kutools for Excel, please do as below:1. click Kutools > More (in the Editing group) > Create Comment List. See screenshot:2. In the Create
