+ Reply to Thread
Results 1 to 5 of 5

Inserting comments into range of cells

Hybrid View

  1. #1
    Registered User
    Join Date
    06-27-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    5

    Inserting comments into range of cells

    Hi ,

    I need to insert a particular line of comment into selected range of cells.
    Ex : I select range from A1 to F16 & I need all these cells to be inserted with comments via VBA

    Could anyone please let me know the solution.

    Any response will be highly appreciated.

    Thanks in advance

    Rakesh

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Inserting comments into range of cells

    Add comment in Cell A1. Copy cell A1 and paste special --> comments across A1:F16.

    With VBA...

    Sub
    Range("A1"). Select
    Selection.Copy
        Range("A1:F16").Select
        Selection.PasteSpecial Paste:=xlPasteComments, Operation:=xlNone, _
            SkipBlanks:=False, Transpose:=False
    End Sub
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    06-27-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Inserting comments into range of cells

    Thank you Ace. But i was wondering if we could do this in any other way other than copy paste.

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Inserting comments into range of cells

    Copy & paste special seems to be the easiest and most efficient way to me. Alternatively, you could use VBA to select each cell across A1:F16 and insert the same comment individually in each cell (bit more cumbersome!).

  5. #5
    Registered User
    Join Date
    06-27-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Inserting comments into range of cells

    This is what i am looking for. The earlier solution provided by you is the easiest however, i have other codes written in vba & i cannot use the same for some issues which i am aware.
    Can you tell me how to code individual cells in a range with the comments.

+ 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