Use the following code. =PROFEXNoteText(B5) for the note (old / yellow comment text). Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. You could also send the file to a Windows user and get the comments extracted to cells with some simple VBA Sub Extract_Comments() Dim c As Range This category only includes cookies that ensures basic functionalities and security features of the website. To delete a comment use this code. We also use third-party cookies that help us analyze and understand how you use this website. In this post, we will see two sets of code: First, we have to insert the code to a VB Module. The below VBA code snippet will let you convert a cell comment to cell content. Sign up here to receive notices. 3 Methods for pulling out comment or note texts in Excel, Method 1: Extract comment text or note text to cell manually, Method 2: Use a VBA macro to transform comments to cells in Excel, Method 3: Use Professor Excel Tools to extract comment text or note text. Now, you need to delete the old comment and add the new one. & Cmnt.Parent.Address Worksheets("Comments").Range("B1").Offset(Count, 0).Value = Cmnt.Author Worksheets("Comments").Range("C1").Offset(Count, 0).Value = Cmnt.Text Count = Count + 1 Next Cmnt Next WS End Sub You can also select all cells having comments (and highlight them e.g.). Excel Opens Blank Window When Double-Clicking On File? Put the following code somewhere in your macro to add a comment. Function ProfessorExcelReturnCommentText (cell As Range) ProfessorExcelReturnCommentText = cell.CommentThreaded.Text End Function Because the new comments can contain “conversations” with replies e.g., you can also extract the whole conversion. ©  2020 Spreadsheet Boot Camp LLC. We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. You could also fetch comment from a cell and use it anywhere in your Excel Sheet using a custom function. .xlam add-in. Sheet1.Range("A1").AddComment ("Hello World") Delete Cell Comment Using VBA. It is unlikely that any of the code below will meet your exact requirements. Go to the “Home” ribbon and click on “Find & Select” on the right-hand side. This website uses cookies to improve your experience while you navigate through the website. Stop searching for VBA code online. For the new comments since Excel 2019 go to “Review” and click on “Show Comments”. How to Import CSV and Text Files in Excel, Export From Excel to PowerPoint: 3 Ways (Recommended Reading), INDIRECT: How to Use Text as a Cell Reference in Excel, Hyperlink: 3 Ways of How to Extract the Link from an Excel Cell. Just add below code in a VB Module: Now call this function on any desired cell just like a regular excel formula: If there are user names in the comment, use this formula to strip them off automatically: Powered by  – Designed with the Customizr theme, Convert Excel Cell Contents to Comments and vice-versa with VBA Code, How to Create Shortcuts for Modern UI Apps in Windows 10, AutoHotkey: Create YouTube Playlist by Copying Video Links to Clipboard, Convert WordPress Tables from InnoDB to MyISAM, and vice-versa, Add Option to Hide/Show Comments on Google+ Posts with +Comment Toggle, Delete All Pingback and Trackback Comments from WordPress Posts, Add TinyMCE Rich Text Editor to WordPress Comments without Plugin, Free Code and Snippet Managers to Manage Your Code Library, How to Add Custom File Types to Excel Open File Dialog, How to Protect Excel Cell Format, Formula, Content & Structure, Assign Keyboard Shortcut to Pin Tab in Browsers, PowerShell Beautifier: Free Tool to Pretty Print .PS1 Script Files, PowerShell: Copy All Files from Subfolders and Rename Duplicate, PowerShell: Automatically Cycle Through Tabs in Any Browser, Recursively Delete a Specific File Type from all Subfolders, How to Create Portable Shortcut with Relative Path in Windows, Get BIOS Information with PowerShell and Command Prompt, Robocopy: Command-line Usage Examples and Switches, Internet Explorer 9 for Windows Vista (64-bit). I'm suggesting that Excel can do that without VBA if you have the Description in Cells, not in Cell Comments You could put the comments off to the side like Column CA, where the user won't see them. Wrong Calculations - Why Does Excel Show a Wrong Result? Break Links in Excel - All of Them (Even When Excel Doesn't), Text Import Wizard Gone? 1. =PROFEXCommentReplyAuthorName(A7,1) for the author name of the first reply. The following code snippets show you how to add or delete a comment in a cell. You also have the option to opt-out of these cookies. =PROFEXCommentAuthorName(B5) for the author name of the original comment or. Add a cell comment to let the user know about what you’ve just done! "At Automate Excel we offer a range of free resources, software, training, and consulting to help you Excel at Excel. Just like above, insert the below code into a VB module to use. In your Excel cell, you enter =ProfessorExcelReturnCommentText (B5). Finally, you can add the comment from the NewComment variable using the .AddComent command. All Rights Reserved. add the new text to the existing one in NewComment variable. To edit a comment you need to read the existing one and edit it. Please check your email. 2. Go to Insert > Module, and paste the code: Now close the VB Editor window or switch back to Excel. Put the following code somewhere in your macro to add a comment, 3. Easily access all of the code examples found on our site. This will copy the cell content to cell comment, and delete the original cell content. Highlight the cells you wish to convert to comment, then run the macro by going to Developer tab > Macro > Select ConvertToComment > Run. In order to delete the comment, you have to use the .Comment.Delete command. This will copy the cell content to cell comment, and delete the original cell content. It is mandatory to procure user consent prior to running these cookies on your website. I'm constantly posting new free stuff! Add Cell Comment Using VBA. If no, please let us know what to improve. Click on “Go to Special” and then select “Notes” (or “Comments”) and confirm with OK. Back in Excel, type =ProfessorExcelReturnNoteText(B5) if you want to return the number format code from cell B5. To do that, launch “Microsoft Visual Basic for Applications” by pressing Alt + F11, or navigate to Developer tab > Visual Basic. Comments to Cells – 3 Methods for Comments and Notes (+Download), Return Number Format Codes in Excel – 4 Ways to Get the Formatting Code from a Cell, Merge Excel Files: How to Combine Workbooks into One File, Metadata in Excel: 6 Methods of How to See and Remove All Meta-Data, Return Blank Cells Instead of Zeroes in Excel Formulas, Thousands or Millions in Excel: How to Change the Number Unit, Unhide All Rows or Columns in Excel at the Same Time. By changing those variables, the code can easily be changed and combined with other code snippets to meet your specific requirements. Highlight the cells you wish to convert to comment, then run the macro by going to Developer tab > Macro > Select ConvertToComment > Run. These cookies do not store any personal information. Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. Now we will look at how to reverse what we did above. Thanks for subscribing! Something went wrong. Necessary cookies are absolutely essential for the website to function properly. Suppose there’s a database in an Excel worksheet, and now you want to convert all the cell contents in a sheet to cell comments. Note: You can comment out or remove C.ClearContents if …