Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Extract Cell Comments?

Can I systematically extract text from cell comments and
paste them into an adjacent cell?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Extract Cell Comments?

Yes, try

Range("A2").Value = Range("A1").Comment.Text

where range A1 contains your comment and range A2 is the
cell where you want the comment to appear as text.

John Mansfield
The Planning Deskbook
http://www.pdbook.com

-----Original Message-----
Can I systematically extract text from cell comments and
paste them into an adjacent cell?
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
N10 N10 is offline
external usenet poster
 
Posts: 141
Default Extract Cell Comments?

HI Snoland

This is possibley really basic code but works hope it helps

Sub FIND_THE_COMMENT()
'

Rem WORKS FOR COLUMN A AND PUTS THE RESULT IN COLUMN B
Rem SETUP STICK A FEW COMMENTS IN COLUM A BETWEEN A1 and A100

Dim AAA As String
Range("a1").Select

Application.ScreenUpdating = False

For x = 1 To 100
If ActiveCell.NoteText "" Then AAA = Cells.NoteText
If AAA "" Then ActiveCell.Offset(0, 1).Value = AAA
AAA = ""
ActiveCell.Offset(1, 0).Select
Next

Rem BEST N10



End Sub





"snoland" wrote in message
...
Can I systematically extract text from cell comments and
paste them into an adjacent cell?



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.771 / Virus Database: 518 - Release Date: 29/09/2004


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 690
Default Extract Cell Comments?

One idea for Comments in Column A put in Column B.

Sub Demo()
Dim Rng As Range
Dim Cell As Range

On Error Resume Next
Set Rng = Columns("A:A").SpecialCells(xlCellTypeComments)
If Rng Is Nothing Then Exit Sub

For Each Cell In Rng.Cells
Cell(1, 2) = Trim(Cell.Comment.Text)
Next Cell
End Sub

--
Dana DeLouis
Win XP & Office 2003


"snoland" wrote in message
...
Can I systematically extract text from cell comments and
paste them into an adjacent cell?



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
Extract Cell Comments and Paste as text in a cell Goaliemenace Excel Worksheet Functions 3 October 19th 09 10:28 PM
Extract Cell Comments/Notes to data MSpaven75 Excel Discussion (Misc queries) 7 December 11th 08 02:58 PM
Is there a way to extract numbers from comments for use in a formu cadscout Excel Discussion (Misc queries) 1 November 10th 06 05:28 PM
Extract Comments and paste as values Btibert Excel Discussion (Misc queries) 1 September 30th 05 10:02 PM
extract comments HJC Excel Discussion (Misc queries) 7 June 25th 05 04:30 PM


All times are GMT +1. The time now is 11:09 AM.

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"