#1   Report Post  
Posted to microsoft.public.excel.misc
Pamela
 
Posts: n/a
Default select all comments

How do you "select all comments" in a worksheet or workbook? Does anyone
have the VBA code for this?

Pam
  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default select all comments

Do you mean select all the cells that have comments in them?

if yes,

Option Explicit
Sub testme02()
Dim myRng As Range

With ActiveSheet
Set myRng = Nothing
On Error Resume Next
Set myRng = .Cells.SpecialCells(xlCellTypeComments)
On Error GoTo 0

If myRng Is Nothing Then
MsgBox "No cells with comments"
Else
myRng.Select
End If
End With
End Sub

Manually, you can select a single cell
edit|goto|special|check comments and click ok.

Pamela wrote:

How do you "select all comments" in a worksheet or workbook? Does anyone
have the VBA code for this?

Pam


--

Dave Peterson
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
Cells User Select Locked after upgrade to Excel 2002 TWilson Excel Discussion (Misc queries) 1 August 5th 05 12:22 PM
Select Rows dependant on certain field data Maddy New Users to Excel 1 July 27th 05 03:50 PM
how do you "select locked cells" w/o "select unlocked cells"? princejohnpaulfin Excel Discussion (Misc queries) 3 July 16th 05 03:53 AM
In Excel 2000, How do you select the whole of a worksheet (Select. Rascal Excel Discussion (Misc queries) 1 March 4th 05 11:59 PM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM


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