#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Printing Comments

Does anyone know a quick way to print all the comments in an excel worksheet
to either a row or a separate sheet?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,173
Default Printing Comments

zulfer7

FilePage setup...SheetComments= at end of sheet

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

HIS
www.nickhodge.co.uk

"zulfer7" wrote in message
...
Does anyone know a quick way to print all the comments in an excel
worksheet
to either a row or a separate sheet?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Printing Comments

This macro will put all comments from the active sheet onto a new sheet ready
for printing.

Sub showcomments()
'posted by Dave Peterson 2003-05-16
Application.ScreenUpdating = False

Dim commrange As Range
Dim mycell As Range
Dim curwks As Worksheet
Dim newwks As Worksheet
Dim i As Long

Set curwks = ActiveSheet

On Error Resume Next
Set commrange = curwks.Cells _
.SpecialCells(xlCellTypeComments)
On Error GoTo 0

If commrange Is Nothing Then
MsgBox "no comments found"
Exit Sub
End If

Set newwks = Worksheets.Add

newwks.Range("A1:D1").Value = _
Array("Address", "Name", "Value", "Comment")

i = 1
For Each mycell In commrange
With newwks
i = i + 1
On Error Resume Next
.Cells(i, 1).Value = mycell.Address
.Cells(i, 2).Value = mycell.Name.Name
.Cells(i, 3).Value = mycell.Value
.Cells(i, 4).Value = mycell.Comment.Text
End With
Next mycell

Application.ScreenUpdating = True

End Sub


Gord Dibben MS Excel MVP

On Thu, 19 Oct 2006 13:53:02 -0700, zulfer7
wrote:

Does anyone know a quick way to print all the comments in an excel worksheet
to either a row or a separate sheet?


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
Printing Comments Barb Excel Discussion (Misc queries) 0 August 16th 06 05:47 PM
Comments Printing Problem TreebeardEnt Excel Worksheet Functions 0 June 8th 06 04:47 PM
Printing Excel Comments Steve Excel Discussion (Misc queries) 3 May 4th 06 04:45 AM
changing the cell name when printing comments Amadis Excel Discussion (Misc queries) 1 February 22nd 06 11:05 PM
let's allow printing comments as foot- or end-notes MattThom Excel Discussion (Misc queries) 1 January 22nd 06 11:37 PM


All times are GMT +1. The time now is 02:49 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"