+ Reply to Thread
Results 1 to 2 of 2

How to returning comments to original settings

Hybrid View

  1. #1
    Registered User
    Join Date
    02-25-2010
    Location
    Trollhattan/ sweden
    MS-Off Ver
    Excel 2010
    Posts
    2

    How to returning comments to original settings

    Hello all, now i have given up the quest of finding the information on the net.
    I found some code on how to change the appearance of the comments in a sheet using VBA, but I can’t find how to return it to default using VBA.
    First, here is an example on a comment change that I have found.

    Sub Comments_Adv()
    Dim MyComments As Comment
    Dim LArea As Long
    For Each MyComments In ActiveSheet.Comments
    With MyComments
    .Shape.AutoShapeType = msoShapeRectangle
    .Shape.TextFrame.Characters.Font.Name = "Tahoma"
    .Shape.TextFrame.Characters.Font.Size = 8
    .Shape.TextFrame.Characters.Font.ColorIndex = 2
    .Shape.Line.ForeColor.RGB = RGB(0, 0, 0)
    .Shape.Line.BackColor.RGB = RGB(255, 255, 255)
    .Shape.Fill.Visible = msoTrue
    .Shape.Fill.ForeColor.RGB = RGB(58, 82, 184)
    .Shape.Fill.OneColorGradient msoGradientDiagonalUp, 1, 0.23
    End With
    Next 'comment
    End Sub



    By removing the comment and writing a new one we can get the status back to default state but I would like to know how to do it using VBA.
    I have tried to figure out the data for the example above but for some reason I can’t find the information.

    I hope you can help me how to set it do default or help me to determine how to find the default values.

  2. #2
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: How to returning comments to original settings

    Hi Joshen,

    The forum rules stipulate that when you are posting code, you must enclose this code with CODE tags. Please edit your post, select the code and click on the # icon
    If you like my contribution click the star icon!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1