I have the following code that will copy and paste Notes but also want to copy and paste CommentThreaded. How can I modify this code to do both?
I have tried a few things and can not make it work. Thank You in advance.
I have tried a few things and can not make it work. Thank You in advance.
VBA Code:
Public Sub Macro3()
Windows("Book1.xlsm").Activate
Sheets("Sheet1").Activate
Range("C1").Activate
Do Until ActiveCell.Value = ""
ActiveCell.Offset(1, 0).Activate
If Len(ActiveCell.NoteText) > 0 Then
ActiveCell.Copy
HasNote = True
End If
ToFind = ActiveCell.Value
Windows("Book2.xlsm").Activate
Sheets("Sheet1").Activate
Columns("C:C").Select
On Error Resume Next
Selection.Find(What:=ToFind, After:=ActiveCell, LookIn:=xlFormulas2, _
LookAt:=xlPart, SearchOrder:=xlByColumns, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False).Activate
If Err.Number = 0 Then
On Error GoTo -1
If HasNote Then
ActiveCell.PasteSpecial
End If
Else
NotFound = True
On Error GoTo -1
End If
Application.CutCopyMode = False
Loop
End Sub