Results 1 to 14 of 14

Adding Comment List using VBA

Threaded View

  1. #1
    Forum Contributor
    Join Date
    11-25-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    208

    Adding Comment List using VBA

    Below is the code I used to add a comment from text in another cell. I want the comment to pull from a range of cells so it shows up as a list. In the attached file, I want the comment to show I3 & I4 on separate lines. Thanks.


    Sub Comment()
        Sheets("OEM Price Discounted").Select
        Range("C3").Select
        Selection.ClearComments
    
        With Worksheets("oem price discounted").Range("C3").AddComment
            .Visible = False
            .Text Format([i3])
        End With
        Dim xComment As Comment
    For Each xComment In Application.ActiveSheet.Comments
        xComment.Shape.TextFrame.AutoSize = True
    Next
    End Sub
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Adding Comment using VBA
    By backyardfun in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-28-2021, 04:04 PM
  2. [SOLVED] Adding Comment using VBA
    By backyardfun in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-28-2021, 03:45 PM
  3. Adding comment to cell
    By Dunenewt in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-13-2015, 10:54 AM
  4. Adding a Comment Box
    By clpickett3 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-02-2015, 06:37 PM
  5. Disable Delete Comment, Edit Comment, Show/Hide Comment
    By Shanthan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2013, 06:12 AM
  6. adding comment to cell
    By mancitmis in forum Excel General
    Replies: 1
    Last Post: 11-02-2005, 11:15 AM
  7. Adding a new comment with a function?
    By Cheese in forum Excel General
    Replies: 4
    Last Post: 07-31-2005, 07:05 AM

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