Adding Comments

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to have a macro that will add a comment box to all the cells that the
interior color index = 6. Anyone have any ideas?

TIA,

Kim
 
Kim,

Her is an example that works on the current selection.

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
Well here it is

Dim c As Range

For Each c In Selection
If c.Interior.ColorIndex = 6 Then
c.AddComment c.Address
End If
Next c

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
Perfect! Thanks!

Kim

Bob Phillips said:
Well here it is

Dim c As Range

For Each c In Selection
If c.Interior.ColorIndex = 6 Then
c.AddComment c.Address
End If
Next c

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Cell and Object change 1
Excel Import Comments 3
Macro Help 3
Comment Color 1
code 4
Q: UDF with Interior.colorindex Help needed 4
Conditional Format - Identifying Highlighted Cells 9
short cut for comment background 4

Back
Top