ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Status Bar Message (https://www.excelbanter.com/excel-programming/420419-status-bar-message.html)

kirkm[_8_]

Status Bar Message
 

While mousing over a cell with a comment, the status bar shows Cell
[whatever] commneted by [name].

Is it possible to remove all instances of [name] ?

Thanks - Kirk

Gary''s Student

Status Bar Message
 
Every comment has an Author property.
This is displayed in the status bar on mouse-over.
The property is, sadly, read-only.

This little macro saves your UserName, re-assigns the UserName, re-creates
each comment on the worksheet and then re-establishes your UserName:

Sub ReNameMe()
' gsnuxx
Dim r As Range, cText As String, s As String
s = Application.UserName
Application.UserName = " "
Set rr = ActiveSheet.UsedRange.SpecialCells(xlCellTypeComme nts)
For Each r In rr
With r
cText = .Comment.Text
.ClearComments
.AddComment
.Comment.Text Text:=cText
End With
Next
Application.UserName = s
End Sub


PLEASE NOTE:

1. the macro will not the wording of the comment.
2. special comment formatting may not be preserved.

--
Gary''s Student - gsnu200815 gsnu2007k


"kirkm" wrote:


While mousing over a cell with a comment, the status bar shows Cell
[whatever] commneted by [name].

Is it possible to remove all instances of [name] ?

Thanks - Kirk



All times are GMT +1. The time now is 01:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com