nparsons75
Well-known Member
- Joined
- Sep 23, 2013
- Messages
- 1,256
- Office Version
- 2016
Hi,
I have a macro that copies and pastes cells from one column to the next to the right. This works fine but does not copy any comments that are attached to the cell, they remain in the original cell. Is there a way to ensure comments move with the cells within the macro?
My code is:
Thanks,
I have a macro that copies and pastes cells from one column to the next to the right. This works fine but does not copy any comments that are attached to the cell, they remain in the original cell. Is there a way to ensure comments move with the cells within the macro?
My code is:
Code:
Sub Macro2() Application.ScreenUpdating = False
Sheets("Tracker").Select
Range("B12:J61").Select
ActiveWindow.SmallScroll Down:=-18
Sheets("OUTPUT").Select
Columns("A:A").Select
Selection.Insert Shift:=xlToRight, CopyOrigin:=xlFormatFromLeftOrAbove
Sheets("Tracker").Select
Range("K8:K61").Select
Selection.Copy
Sheets("OUTPUT").Select
Range("A1").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Selection.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Columns("A:A").EntireColumn.AutoFit
Sheets("Tracker").Select
ActiveWindow.SmallScroll Down:=-15
Range("B12:J61").Select
Application.CutCopyMode = False
Selection.Copy
ActiveWindow.SmallScroll Down:=-15
Range("C12").Select
ActiveSheet.PasteSpecial Format:=3, Link:=1, DisplayAsIcon:=False, _
IconFileName:=False
Range("B12:B61").Select
Selection.ClearContents
End Sub
Sub Macro3()
If Range("B11").Value = 0 Then
Range("B1").Value = result
Application.ScreenUpdating = False
Range("C12:K61").Select
Selection.Copy
Range("B12").Select
ActiveSheet.PasteSpecial Format:=3, Link:=1, DisplayAsIcon:=False, _
IconFileName:=False
Range("K12:K61").Select
Selection.ClearContents
Sheets("OUTPUT").Select
Range("A5:A54").Select
Selection.Copy
Sheets("Tracker").Select
Range("K12").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("OUTPUT").Select
Columns("A:A").Select
Range("A31").Activate
Application.CutCopyMode = False
Selection.Delete Shift:=xlToLeft
Sheets("Tracker").Select
Else
MsgBox "NO UNDO AVAILABLE"
End If
End Sub
Thanks,