Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This will copy it to a WORD application.
Sub CopyCommentsToWord() Dim cmt As Comment Dim WdApp As Object Dim aWS As Worksheet On Error Resume Next Set WdApp = GetObject(, "Word.Application") If Err.Number < 0 Then Err.Clear Set WdApp = CreateObject("Word.Application") End If Debug.Print "after err.number" With WdApp .Visible = True .Documents.Add DocumentType:=0 For Each aWS In ActiveWorkbook.Worksheets For Each cmt In aWS.Comments .Selection.TypeText cmt.Parent.Address _ & vbTab & cmt.text .Selection.TypeParagraph Next End With Next aWS Set WdApp = Nothing End Sub "Mark" wrote: Can someone supply me with some code which examines a workbook, finds comments in cells and then copies the contents of those comments into a seperate workbook as the code runs through each worksheet in a workbook. Mark |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
excel 2000 how to format the comments font all comments | Excel Discussion (Misc queries) | |||
exporting comments into a separate spreadsheet? | Excel Discussion (Misc queries) | |||
Exporting Comments | Excel Discussion (Misc queries) | |||
exporting comments? | Excel Programming | |||
Exporting Excel Comments in to Access tables | Excel Programming |