[英]VBA excel copy cell comment and past it onto a new sheet without using clipboard?
Hello my goal is to copy a comment, of a cell without having to use the clipboard (or all that added code :D) im still new to VBA so sorry for any errors :D 您好我的目标是复制一个单元格的注释,而不必使用剪贴板(或所有添加的代码:D)我仍然是VBA的新手,所以对不起任何错误:D
I was trying to use this code below it works great on cells but im not sure if it works on comments to 我试图使用下面的代码,它在单元格上工作得很好,但我不确定它是否适用于评论
Sheets("Dump").Range("A1").Copy Destination:=Sheets("RR").Range("K1")
i try to change it around a bit but it gave me an error "application-defined or object-defined error" 我尝试改变它一点但它给了我一个错误“应用程序定义或对象定义的错误”
Sheets("Dump").Range("A1").CopyComment Destination:=Sheets("RR").Range("K1").AddComment
ty for any help one can give 我可以给予任何帮助
Here's an example using Cell A1
comment being copied to B1
这是使用Cell
A1
注释复制到B1
的示例
Sub Testit()
Range("A9").Copy
Range("B9").PasteSpecial xlPasteComments
End Sub
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.