Skip to main content

Kutools for Office — One Suite. Five Tools. Get More Done.

How to change all comments’ author name in Excel?

Author Tech Support Last modified

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.

A screenshot showing comments in an Excel worksheet with author names replaced

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


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:

A screenshot of the Excel Options dialog box to change the default author name

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.


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.

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Itegarate with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

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:

A screenshot of the Kutools Remove/Add User Name in Comment tool in Excel

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.

A GIF showing how to use Kutools for Excel to change comment author names

Kutools for Excel - Supercharge Excel with over 300 essential tools. Enjoy permanently free AI features! Get It Now


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:

A screenshot of the KutoolsforExcel dialog box to input the old author name for comments

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:

A screenshot of the KutoolsforExcel dialog box to input the new author name for comments

Now all author names of the existing comments are changed to the new name in the whole workbook immediately.

A screenshot showing comments in an Excel worksheet with author names replaced

Note: This method won't work to the new comments you insert.


Demo: Change all comments’ author name with Kutools for Excel

Kutools for Excel: Over 300 handy tools at your fingertips! Enjoy permanently free AI features! Download Now!