Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / June 2006

Tip: Looking for answers? Try searching our database.

Default formatting on Comments

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
johan@aktieguiden.com - 08 Jun 2006 13:15 GMT
Is it possible to change the default formatting of comments in Excel? I
would like to have a larger font size in comments, but it always
defaults to Arial, 8pt.

I tried to change the AutoShape defaults, but that didn't help.

Regards // Johan
Debra Dalgleish - 08 Jun 2006 14:07 GMT
To change the default font size (Note: this will change the settings for
tooltips in Excel and other programs) --

    Right-click on the desktop, and choose Properties
    On the Appearance tab, click Advanced.
    From the Item dropdown, choose Tooltip
    Choose a font Size, click OK, click OK
        (Note: selecting a font type here will not affect the
           default font used in Excel's comments)
    You can also set the font to Bold or italic, and select a colour

To insert a comment with a specific font type, you can use a macro:

    http://www.contextures.com/xlcomments03.html#Formatted

> Is it possible to change the default formatting of comments in Excel? I
> would like to have a larger font size in comments, but it always
[quoted text clipped - 3 lines]
>
> Regards // Johan

Signature

Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

Miyahn - 08 Jun 2006 14:43 GMT
> Is it possible to change the default formatting of comments in Excel? I
> would like to have a larger font size in comments, but it always
> defaults to Arial, 8pt.
>
> I tried to change the AutoShape defaults, but that didn't help.

How about using the add-in which have following code in standard module.
(This add-in changes only cell's context menu.)

Option Explicit
'
Sub Auto_Open()
  On Error Resume Next
  SendKeys "{ESC}"
  Application.CommandBars("Cell").ShowPopup
  Application.CommandBars("Cell").FindControl(ID:=2031).OnAction _
    = "MyComment"
  On Error GoTo 0
End Sub
'
Sub Auto_Close()
  On Error Resume Next
  SendKeys "{ESC}"
  Application.CommandBars("Cell").ShowPopup
  Application.CommandBars("Cell").FindControl(ID:=2031).Reset
  On Error GoTo 0
End Sub
'
Sub MyComment()
  With Selection.AddComment
    .Visible = False
    .Text "Comment:"
    With .Shape.TextFrame.Characters.Font
      .Name = "Times New Roman"
      .FontStyle = "Normal"
      .Size = 11
    End With
  End With
  SendKeys "%(IE){ENTER}"
End Sub

Signature

Miyahn (Masataka Miyashita) JPN
Microsoft MVP for Microsoft Office - Excel(Jan 2006 - Dec 2006)
https://mvp.support.microsoft.com/profile=e971f039-a892-426c-9544-83d372c269b4

johan@aktieguiden.com - 08 Jun 2006 15:02 GMT
Thank you both for the fast replies!

The macro and the addin is pretty sweet! I suppose there is a similar
way to override the default behavior of Insert, Comment by setting my
own OnAction event handler?

#2: What an excellent site! The RSS-feed is added to my favorites!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.