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
Quickly change the author name of all existing comments in active or all sheets with Kutools for Excel
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)
Change the author name of all existing comments in the whole workbook with VBA code
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.
Quickly change the author name of all existing comments in active or all sheets with Kutools for Excel
Besides the above two methods, 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.
If you want to have a free trial (30-day) of this utility, please click to download it, and then go to apply the operation according above steps.
Change all comments’ author name with Kutools for Excel
Related articles:
- Change all comment formats in cells
- List all comments to a new worksheet or workbook
- Find and replace text within comments
- Show or hide all comments and comment indicators in Excel
- Convert cell contents to comments in Excel
- Convert comments to cell contents in Excel
Best Office Productivity Tools
Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time. Click Here to Get The Feature You Need The Most...
Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!












