Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Set author for a comment?

Is there some way to set the Author of a comment on a specific cell? I've
tried using the .author but i'm guessing that's read only.

Thanks guys!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,123
Default Set author for a comment?

With code you can do this
http://www.contextures.com/xlcomments03.html#Name



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"Myles" wrote in message ...
Is there some way to set the Author of a comment on a specific cell? I've
tried using the .author but i'm guessing that's read only.

Thanks guys!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 225
Default Set author for a comment?

For an existing comment you must get the text, search and replace the author,
delete the comment and reinsert it with the updated text
..Author is a read only property
Author in the comment comes from Application.UserName

See Debra's article on 'Comments' at
http://www.contextures.com/xlcomments03.html
to learn all about comments programming.

"Myles" wrote:

Is there some way to set the Author of a comment on a specific cell? I've
tried using the .author but i'm guessing that's read only.

Thanks guys!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Set author for a comment?

Okay but whenever i use the

cells(1,1).addcomment "comment"

it automatically doesn't put any author in there even if i change the
Application.UserName

So how do i get it to put the author in there?

"Sheeloo" wrote:

For an existing comment you must get the text, search and replace the author,
delete the comment and reinsert it with the updated text
.Author is a read only property
Author in the comment comes from Application.UserName

See Debra's article on 'Comments' at
http://www.contextures.com/xlcomments03.html
to learn all about comments programming.

"Myles" wrote:

Is there some way to set the Author of a comment on a specific cell? I've
tried using the .author but i'm guessing that's read only.

Thanks guys!

  #5   Report Post  
Posted to microsoft.public.excel.misc
JB JB is offline
external usenet poster
 
Posts: 115
Default Set author for a comment?

Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel
As Boolean)
If Target.Address = "$A$1" And Not Target.Comment Is Nothing Then
If InStr(Target.Comment.Text, Environ("username")) = 0 Then
MsgBox "Vous are not authorized!"
Exit Sub
End If
End If
End Sub

http://cjoint.com/?ebtVEAKGWV

JB
http://boisgontierjacques.free.fr

On 30 mar, 18:04, "Ron de Bruin" wrote:
With code you can do thishttp://www.contextures.com/xlcomments03.html#Name

--

Regards Ron de Bruinhttp://www.rondebruin.nl/tips.htm



"Myles" wrote in ...
Is there some way to set the Author of a comment on a specific cell? *I've
tried using the .author but i'm guessing that's read only.


Thanks guys!- Masquer le texte des messages précédents -


- Afficher le texte des messages précédents -




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 225
Default Set author for a comment?

cmt = Application.UserName
cmt = cmt & ":" & Chr(10) & "Comment"
'Delete the comment if it exists
'Cells(1, 1).Comment.Delete
Cells(1, 1).AddComment cmt

"Myles" wrote:

Okay but whenever i use the

cells(1,1).addcomment "comment"

it automatically doesn't put any author in there even if i change the
Application.UserName

So how do i get it to put the author in there?

"Sheeloo" wrote:

For an existing comment you must get the text, search and replace the author,
delete the comment and reinsert it with the updated text
.Author is a read only property
Author in the comment comes from Application.UserName

See Debra's article on 'Comments' at
http://www.contextures.com/xlcomments03.html
to learn all about comments programming.

"Myles" wrote:

Is there some way to set the Author of a comment on a specific cell? I've
tried using the .author but i'm guessing that's read only.

Thanks guys!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel author name Jim Lynch Excel Discussion (Misc queries) 6 March 29th 10 04:40 PM
how to change Author name Author name Excel Discussion (Misc queries) 2 April 29th 08 10:07 AM
I am looking for the author of this script Mr BT Excel Worksheet Functions 4 August 6th 06 09:31 PM
print author jiwolf Excel Worksheet Functions 1 March 15th 06 08:28 PM
a comment plugin & copy paste directly from excel to comment ? fr. RFM Excel Worksheet Functions 0 December 1st 04 11:29 PM


All times are GMT +1. The time now is 12:10 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"