How to change all comments’ author name in Excel?
When you insert the comments into a worksheet, the name of the comment author is automatically inserted into the comment followed by a colon. Sometimes, you may want to change the name of comment author. How can you do? You can change the name of comment author in Excel as the following methods.
Change the default author name of all new comments with configuring Excel Options
Change the author name of all existing comments in the whole workbook with VBA code
Change the default author name of all new comments with configuring Excel Options
You can change the Excel user name in order to change the auther name of all new comments you will insert.
1. Click File > Options in Excel 2010/2013/2016, or you can click the Office button > Excel Options > Popular in Excel 2007.
2. In the Excel Options dialog box, click General in the left bar, then scroll to the Personalize your copy of Microsoft Office section in the right pane, then replace the old User name with the new one you need. And finally click the OK button. See screenshot:
Form now on, when you inserting new comments into your worksheet, the author name will be the new one as you specified above. However, the author name of the old comments still kept the old one.
Quickly change the author name of all existing comments in Excel
With the Remove/Add User Name in Comment utility of Kutools for Excel, you can quickly change the author name of all existing comments as the below demo shown. Download and try it now! (30-day free trail)
Easily find and replace the author name of all existing comments with new one with Kutools for Excel
Besides the above method, here I recommend you the Remove/Add User Name in Comment utility of Kutools for Excel. With this utility, you can easily change the author name of all existing comments to the new one you need not only in active sheet, but also in the whole workbook.
Before applying Kutools for Excel, please download and install it firstly.
1. Shift to the worksheet you want to change all comments' author name inside, then click Kutools > More > Remove/Add User Name in Comment. See screenshot:
2. In the Remove/Add User Name in Comment dialog box, you need to configure as follow:
Firstly, remove author name from all comments in specified scope.
- (1) In the Scope drop-down list, if you just want to change author names in current sheet, please select Active sheet option. For changing author names in the whole workbook, please select All Sheets option.
- (2) Choose the Remove user name from comments option.
- (3) Click the Apply button.
- (4) In the popping up dialog box, click the OK button
Then add new author name to all comments in specified scope.
- (1) Enter the new author name of comments into the User Name box, and then choose the Add user name to comments option;
- (2) Click the Apply button;
- (3) In the popping up dialog box, click the OK button;
- (4) Click the Close button to close the dialog box.
Using VBA code to convert all negative numbers of a range to positive
If you want to change the author name of all exiting comments in the whole workbook, the below VBA code will help you:
1. Please press Alt + F11 keys at the same time to open the Microsoft Visual Basic for Applications. And in the Microsoft Visual Basic for applications window, click Insert > Module, then copy and paste the following code into the module window:
VBA code: Change the author name of all existing comments in the whole workbook
Sub ChangeCommentName()
'Updateby20140509
Dim xWs As Worksheet
Dim xComment As Comment
Dim oldName As String
Dim newName As String
xTitleId = "KutoolsforExcel"
oldName = InputBox("Old Name", xTitleId, Application.UserName)
newName = InputBox("New Name", xTitleId, "")
For Each xWs In Application.ActiveWorkbook.Worksheets
For Each xComment In xWs.Comments
xComment.Text (Replace(xComment.Text, oldName, newName))
Next
Next
End Sub
2. Press the F5 key to run the code, then a KutoolsforExcel dialog box popping up with the old comment author name displaying in the textbox, please click the OK button. See screenshot:
3. Then another KutoolsforExcel dialog box pops up, please type the new comment's author name you need into the textbox, and then click the OK button. See screenshot:
Now all author names of the existing comments are changed to the new name in the whole workbook immediately.
Note: This method won't work to the new comments you insert.
Demo: Change all comments’ author name with Kutools for Excel
Related articles
Change all comment formats in cells
When we insert comments in a worksheet, sometimes, we may need to change the default comment formats, if there are a few comments, we can change them manually, but if there are hundreds of comments need to be changed, how do you solve it?
List all comments to a new worksheet or workbook
The following methods can help you quickly list all comments of a worksheet / workbook to a new worksheet or workbook in Excel.
Find and replace text within comments
As we know, there is a Find and Replace function in excel, and with this function, we can find and replace the content in cells quickly. But can we find and replace contents in comments in Excel?
Convert cell contents to comments in Excel
Maybe you have a range of cells filled with some information, and now you want to convert those cell contents to comments in a worksheet. Is it possible for you to finish this task in Excel? Here are some quick tricks to solve this problem.
The Best Office Productivity Tools
Kutools for Excel - Helps You To Stand Out From Crowd
Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...
Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)
- One second to switch between dozens of open documents!
- Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
- Increases your productivity by 50% when viewing and editing multiple documents.
- Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.
Table of contents
- Change the default author name of all new comments with configuring Excel Options
- Quickly change the author name of all existing comments in active or all sheets with Kutools for Excel
- Change the author name of all existing comments in the whole workbook with VBA code
- Related articles
- The Best Office Productivity Tools
- Comments