LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Nick Hodge
 
Posts: n/a
Default

Rg

The code below will take the comments from the active sheet and put them in
column A (Address) and column B (Text) on a new sheet inserted into the book

Sub ExtractCommentsToNewSheet()
Dim wksActive As Worksheet
Dim wksNew As Worksheet
Dim lCnt As Long
Dim rngComm As Range, myCell As Range
Set wksActive = ActiveSheet
Set wksNew = Worksheets.Add
Set rngComm = wksActive.Cells.SpecialCells(xlCellTypeComments)
lCnt = 1
For Each myCell In rngComm
With wksNew.Range("A" & lCnt)
.Value = myCell.Address
.Offset(0, 1).Value = myCell.Comment.Text
End With
lCnt = lCnt + 1
Next myCell
wksNew.Columns.AutoFit
End Sub


--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS


"Rg" wrote in message
...
I have inserted comments, and now i want to get the contents of each
comment
in a cell. Is it possible?



 
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
I have one missing comment indicator amongst several. How can i c. Banana Excel Discussion (Misc queries) 10 February 18th 05 08:17 AM
Insert new row as cell contents change George Excel Discussion (Misc queries) 2 January 26th 05 11:47 AM
Cell contents vs. Formula contents Sarah Excel Discussion (Misc queries) 3 December 15th 04 06:02 PM
comment indicators should feature lock or pw protect limiting acc. summer_rose Excel Worksheet Functions 1 December 3rd 04 07:02 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 04:37 PM.

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

About Us

"It's about Microsoft Excel"