Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How can I get comment from excel?

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!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default How can I get comment from excel?

Sub commment()
Dim c As Comment
Set c = Range("C8").Comment
MsgBox (c.Text)
End Sub

--
Gary''s Student - gsnu200856
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,049
Default How can I get comment from excel?

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" wrote in message
...
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
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
Show Excel comment on mouseover but not the comment indicator [email protected] Excel Programming 6 June 30th 15 02:30 AM
How do I remove the red corner in excel comment and keep comment? skeptic007 Excel Programming 2 March 29th 07 02:54 PM
Excel Comment Box tony Excel Discussion (Misc queries) 1 August 17th 06 02:58 AM
How can I edit a comment w/o first having to select Show Comment Mary Ann Excel Discussion (Misc queries) 1 August 26th 05 12:34 AM
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 10:52 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"