Paste Values AND Comments

pliskers

Active Member
Joined
Sep 26, 2002
Messages
461
Office Version
  1. 2016
Platform
  1. Windows
I've tried every combination I can think of to have a macro paste over a range both the values of the formulas AND the comments housed in some of the cells. Regardless of the order in which executed, the pasting of values always seems to delete the comments. Is there a workaround?

Thanks in advance!
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
This is working for me.

VBA Code:
Sub CommentCopy()
 Range("A1").Copy
 Range("A2").PasteSpecial xlPasteValues
 Range("A2").PasteSpecial xlPasteComments
 Application.CutCopyMode = False
End Sub
 
Upvote 0
This is working for me.

VBA Code:
Sub CommentCopy()
Range("A1").Copy
Range("A2").PasteSpecial xlPasteValues
Range("A2").PasteSpecial xlPasteComments
Application.CutCopyMode = False
End Sub
I’ll give it a try. The only difference from what I’ve tried is the CutCopyMode statement
 
Upvote 0
I’ll give it a try. The only difference from what I’ve tried is the CutCopyMode statement
Might the issue be that I’m pasting everything onto the same range? Basically converting formulas and comments into values and want the comments to remain.
 
Upvote 0
Looks like comments are pasted cell by cell rather than a range. You'll need some kind of loop to paste them in separately it seems.
 
Upvote 0
Thanks for letting me know. I think I’ll have to pass on that, there are too many and the locations change frequently.
 
Upvote 0

Forum statistics

Threads
1,214,973
Messages
6,122,534
Members
449,088
Latest member
RandomExceller01

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