Paste as Comment

Truiz

Active Member
Joined
Jul 14, 2014
Messages
336
Is there a way to paste information as a Comment I mean a shortcut or something alike if for example I have content in cell B1 and want that to be pasted as a comment in C1 how can I make that happen without having to go to Review Add Coment and then paste.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Try this macro assigned to a shortcut key:
Code:
Public Sub Macro()
    With Range("C1")
        If .Comment Is Nothing Then
            .AddComment Range("B1").Text
        Else
            .Comment.Text Range("B1").Text
        End If
    End With
End Sub
 
Upvote 0
That only works for cells b1 and c1 I need the code to work for the entire column as long as there are values in B
 
Upvote 0
As I mentioned the code does not work did some research and this works

Code:
Public Sub addComments()    Dim rCell As Range
    Dim cCell As Range


    For Each rCell In Selection
        Set cCell = rCell.Offset(0, -1)
        With rCell
            .ClearComments
            .AddComment
            .Comment.Text Text:=cCell.Value
        End With
    Next
    Set rCell = Nothing
End Sub
 
Upvote 0

Forum statistics

Threads
1,202,989
Messages
6,052,945
Members
444,620
Latest member
marialewis16

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top