+ Reply to Thread
Results 1 to 5 of 5

Copying comments from one cell to another, in a different spreadsheet

  1. #1
    =!CmOrE!=
    Guest

    Copying comments from one cell to another, in a different spreadsheet

    Hello Friends,

    I would like to be able to write a comment in a cell, then have that
    comment appear in another cell on a different spreadsheet within the
    same workbook, though. Or within the same spreadsheet.

    Is there a formula or some sort of formatting to allow for the type of
    function?


    Thanks in advance!!


  2. #2
    Die_Another_Day
    Guest

    Re: Copying comments from one cell to another, in a different spreadsheet

    I'm not sure if it can be done without code. Insert this in a new
    module in "Personal.xls" in the VBA editor. Let me know if you need
    further explanation or if you want to tie it directly to your workbook.

    Function Comments(iRange As Range) As String
    If iRange.Comment Is Nothing Then
    Comments = "NA"
    Else
    Comments = iRange.Comment.Text
    End If
    End Function

    then in your spreadsheet type
    =Comments(A1)

    HTH


    Die_Another_Day
    =!CmOrE!= wrote:
    > Hello Friends,
    >
    > I would like to be able to write a comment in a cell, then have that
    > comment appear in another cell on a different spreadsheet within the
    > same workbook, though. Or within the same spreadsheet.
    >
    > Is there a formula or some sort of formatting to allow for the type of
    > function?
    >
    >
    > Thanks in advance!!



  3. #3
    Sasa Stankovic
    Guest

    Re: Copying comments from one cell to another, in a different spreadsheet

    you can use "copy" on cell with comment and "Edit"-"Paste Special"-"Comment"
    on cell which should receive comment.

    "=!CmOrE!=" <[email protected]> wrote in message
    news:[email protected]...
    > Hello Friends,
    >
    > I would like to be able to write a comment in a cell, then have that
    > comment appear in another cell on a different spreadsheet within the
    > same workbook, though. Or within the same spreadsheet.
    >
    > Is there a formula or some sort of formatting to allow for the type of
    > function?
    >
    >
    > Thanks in advance!!
    >




  4. #4
    =!CmOrE!=
    Guest

    Re: Copying comments from one cell to another, in a different spreadsheet

    Couldn't do it. Can you explain further.

    Thank you
    Die_Another_Day wrote:
    > I'm not sure if it can be done without code. Insert this in a new
    > module in "Personal.xls" in the VBA editor. Let me know if you need
    > further explanation or if you want to tie it directly to your workbook.
    >
    > Function Comments(iRange As Range) As String
    > If iRange.Comment Is Nothing Then
    > Comments = "NA"
    > Else
    > Comments = iRange.Comment.Text
    > End If
    > End Function
    >
    > then in your spreadsheet type
    > =Comments(A1)
    >
    > HTH
    >
    >
    > Die_Another_Day
    > =!CmOrE!= wrote:
    > > Hello Friends,
    > >
    > > I would like to be able to write a comment in a cell, then have that
    > > comment appear in another cell on a different spreadsheet within the
    > > same workbook, though. Or within the same spreadsheet.
    > >
    > > Is there a formula or some sort of formatting to allow for the type of
    > > function?
    > >
    > >
    > > Thanks in advance!!



  5. #5
    Die_Another_Day
    Guest

    Re: Copying comments from one cell to another, in a different spreadsheet

    To make the code stay with your workbook.
    Open the workbook.
    Press Alt+F11
    Click the Insert menu
    Click Module
    Copy the following code into the page that opens

    Function Comments(iRange As Range) As String
    If iRange.Comment Is Nothing Then
    Comments = "NA"
    Else
    Comments = iRange.Comment.Text
    End If
    End Function

    That should do it

    Die_Another_Day

    =!CmOrE!= wrote:
    > Couldn't do it. Can you explain further.
    >
    > Thank you
    > Die_Another_Day wrote:
    > > I'm not sure if it can be done without code. Insert this in a new
    > > module in "Personal.xls" in the VBA editor. Let me know if you need
    > > further explanation or if you want to tie it directly to your workbook.
    > >
    > > Function Comments(iRange As Range) As String
    > > If iRange.Comment Is Nothing Then
    > > Comments = "NA"
    > > Else
    > > Comments = iRange.Comment.Text
    > > End If
    > > End Function
    > >
    > > then in your spreadsheet type
    > > =Comments(A1)
    > >
    > > HTH
    > >
    > >
    > > Die_Another_Day
    > > =!CmOrE!= wrote:
    > > > Hello Friends,
    > > >
    > > > I would like to be able to write a comment in a cell, then have that
    > > > comment appear in another cell on a different spreadsheet within the
    > > > same workbook, though. Or within the same spreadsheet.
    > > >
    > > > Is there a formula or some sort of formatting to allow for the type of
    > > > function?
    > > >
    > > >
    > > > Thanks in advance!!



+ 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