how to change multiple cell comment properties?

  • Thread starter Thread starter numbersjim
  • Start date Start date
N

numbersjim

I have a speadsheet with many cell comments. In the format comment dialog
box / properties tab the default is "don't move or size with cells". If I
change it to "move and size with cells, it only affects one comment at a
time. Is there a way to change the default or do it to all cell comments
globally?
 
Sub SizeZoneComment()
For Each c In ActiveSheet.Comments
c.Shape.Width = 60
c.Shape.Height = 40
Next c
End Sub

Sub AutoSize()
For Each c In ActiveSheet.Comments
c.Shape.TextFrame.AutoSize = True
Next c
End Sub


JB
http://boisgontierjacques.free.fr/
 

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

Back
Top