PC Review


Reply
Thread Tools Rate Thread

How can I get comment from excel?

 
 
zq1956
Guest
Posts: n/a
 
      15th Jun 2009
I use Comment.Text to get it,it show 800A01B6.
I can use Comment.Author to get right value.
Is the method wrong?
how can I get comment from excel?
thx!

 
Reply With Quote
 
 
 
 
Gary''s Student
Guest
Posts: n/a
 
      15th Jun 2009
Sub commment()
Dim c As Comment
Set c = Range("C8").Comment
MsgBox (c.Text)
End Sub

--
Gary''s Student - gsnu200856
 
Reply With Quote
 
Patrick Molloy
Guest
Posts: n/a
 
      15th Jun 2009
Range("A1").Comment.Text

here's a demo that takes the comment and places it into the next cell to the
right

Option Explicit
Sub GetComment()
Dim cellall As Range
Dim cell As Range
Dim addr As String
Set cellall = ActiveSheet.Cells.SpecialCells(xlCellTypeComments)
If Not cellall Is Nothing Then
For Each cell In cellall.Cells
addr = cell.Address
cell.Offset(, 1) = cell.Comment.Text
Next
End If
End Sub

"zq1956" <(E-Mail Removed)> wrote in message
news:E4A959F5-F4ED-4B5F-97C6-(E-Mail Removed)...
> I use Comment.Text to get it,it show 800A01B6.
> I can use Comment.Author to get right value.
> Is the method wrong?
> how can I get comment from excel?
> thx!
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Show Excel comment on mouseover but not the comment indicator jrfauteux@gmail.com Microsoft Excel Programming 5 29th Sep 2010 11:59 PM
Paste MS Excel cells (including the Excel Comment) into an MS Word JCarr22 Microsoft Word Document Management 3 12th Aug 2009 07:13 PM
How do I create a Powerpoint comment like an Excel comment? =?Utf-8?B?V2FyZCBXLg==?= Microsoft Powerpoint 2 11th Oct 2007 12:18 AM
How do I remove the red corner in excel comment and keep comment? =?Utf-8?B?c2tlcHRpYzAwNw==?= Microsoft Excel Programming 2 29th Mar 2007 02:54 PM
a comment plugin & copy paste directly from excel to comment ? fr. =?Utf-8?B?UkZN?= Microsoft Excel Worksheet Functions 0 1st Dec 2004 11:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:24 PM.