Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default Excel Comments | How to Format many at one time

Hello,

Can I set defaults to comments for them to act in a specific way?

For example, I want the default of a comment for the properities to 'Move
and Size with Cells' automatically. currently they are defaulted to 'Dont
Move and size with cells."

I have a workbook which has many comments and I am trying to hide rows and
columns but because I have one comment not formatted correctly, the rows will
not hide. I want to make sure that in the future I do not have to go through
a spreadsheet and make sure that all the comments are formatted correctly.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Excel Comments | How to Format many at one time

With some revision to code by Debra Dalgleish...............

Sub FormatAllComments()
Dim ws As Worksheet
Dim cmt As Comment
For Each ws In ActiveWorkbook.Worksheets
For Each cmt In ws.Comments
With cmt.Shape
.Placement = xlMoveAndSize
End With
Next cmt
Next ws
End Sub

For more Comments coding see Debra's site at

http://www.contextures.on.ca/xlcomments03.html


Gord Dibben MS Excel MVP

On Thu, 24 Jan 2008 12:21:30 -0800, cardosol
wrote:

Hello,

Can I set defaults to comments for them to act in a specific way?

For example, I want the default of a comment for the properities to 'Move
and Size with Cells' automatically. currently they are defaulted to 'Dont
Move and size with cells."

I have a workbook which has many comments and I am trying to hide rows and
columns but because I have one comment not formatted correctly, the rows will
not hide. I want to make sure that in the future I do not have to go through
a spreadsheet and make sure that all the comments are formatted correctly.


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
Converting a time format to a String format in Excel Bill Partridge Excel Discussion (Misc queries) 3 October 3rd 07 11:48 AM
Add time and date stamp to Excel comments. Ahmed Madkour Excel Discussion (Misc queries) 2 May 26th 06 01:57 PM
Change format of all comments in an Excel worksheet Eric Armstrong Excel Discussion (Misc queries) 1 February 24th 06 12:32 AM
How can I pre format all Excel comments MongoMan New Users to Excel 1 December 9th 04 03:35 AM
How can I pre format all Excel comments to Tahoma, font size 12, . MongoMan Excel Discussion (Misc queries) 3 December 9th 04 03:07 AM


All times are GMT +1. The time now is 05:31 AM.

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"