+ Reply to Thread
Results 1 to 3 of 3

Trying to set comment to Cell value

Hybrid View

  1. #1
    Jeff
    Guest

    Trying to set comment to Cell value

    I want to set the comment to the value of a cell. However when I try to do
    this I keep getting an error.

    I've tried
    ActiveCell.AddComment.ShtRef.Value and
    ActiveCell.AddComment.Range("A1").Value and
    ActiveCell.AddComment.Cells(R1 - 68, CurMth)
    Any ideas

  2. #2
    Norman Jones
    Guest

    Re: Trying to set comment to Cell value

    Hi Jeff,

    Try:

    ActiveCell.Comment.Text ActiveCell.Value


    ---
    Regards,
    Norman



    "Jeff" <Jeff@discussions.microsoft.com> wrote in message
    news:C66AFBC8-2CCA-41FA-8155-C489C573951D@microsoft.com...
    >I want to set the comment to the value of a cell. However when I try to do
    > this I keep getting an error.
    >
    > I've tried
    > ActiveCell.AddComment.ShtRef.Value and
    > ActiveCell.AddComment.Range("A1").Value and
    > ActiveCell.AddComment.Cells(R1 - 68, CurMth)
    > Any ideas




  3. #3
    Norman Jones
    Guest

    Re: Trying to set comment to Cell value

    Hi Jeff,

    Or, to insert a comment ans set the comment text to thw cells value, try:

    With ActiveCell
    .AddComment Text:=.Value
    End With

    ---
    Regards,
    Norman



    "Jeff" <Jeff@discussions.microsoft.com> wrote in message
    news:C66AFBC8-2CCA-41FA-8155-C489C573951D@microsoft.com...
    >I want to set the comment to the value of a cell. However when I try to do
    > this I keep getting an error.
    >
    > I've tried
    > ActiveCell.AddComment.ShtRef.Value and
    > ActiveCell.AddComment.Range("A1").Value and
    > ActiveCell.AddComment.Cells(R1 - 68, CurMth)
    > Any ideas




+ 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