Hello
My code that copies data from cells to an ordered list, then clears the original cells, and then copies data from the list to a different position on the form...essentially rotating the data. I believe my code is very clumsy and not efficient. I am hopeful someone can provide some guidance...
My code that copies data from cells to an ordered list, then clears the original cells, and then copies data from the list to a different position on the form...essentially rotating the data. I believe my code is very clumsy and not efficient. I am hopeful someone can provide some guidance...
Code:
Sub Macro1()
ActiveSheet.Unprotect
Range("C27:F27").Select
Selection.Copy
Range("N27").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("C27:F28").Select
Selection.ClearContents
Range("C31:F31").Select
Application.CutCopyMode = False
Selection.Copy
Range("N28").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("C31:F32").Select
Selection.ClearContents
Range("C35:F35").Select
Application.CutCopyMode = False
Selection.Copy
Range("N29").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("C35:F36").Select
Selection.ClearContents
Range("J27:K27").Select
Selection.Copy
Range("N30").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("J27:K28").Select
Selection.ClearContents
Range("J31:K31").Select
Selection.Copy
Range("N31").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("J31:K32").Select
Selection.ClearContents
Range("J35:K35").Select
Selection.Copy
Range("N32").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("J35:K36").Select
Selection.ClearContents
Range("C41:F41").Select
Selection.Copy
Range("N33").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("C41:F42").Select
Selection.ClearContents
Range("C45:F45").Select
Selection.Copy
Range("N34").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("C45:F46").Select
Selection.ClearContents
Range("C49:F49").Select
Selection.Copy
Range("N35").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("C49:F50").Select
Selection.ClearContents
Range("J41:K41").Select
Selection.Copy
Range("N36").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("J41:K42").Select
Selection.ClearContents
Range("J45:K45").Select
Selection.Copy
Range("N37").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("J45:K46").Select
Selection.ClearContents
Range("J49:K49").Select
Selection.Copy
Range("N38").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("J49:K50").Select
Selection.ClearContents
Range("C55:F55").Select
Selection.Copy
Range("N39").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("C55:F56").Select
Selection.ClearContents
Range("C59:F59").Select
Selection.Copy
Range("N40").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("C59:F60").Select
Selection.ClearContents
Range("C63:F63").Select
Selection.Copy
Range("N41").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("C63:F64").Select
Selection.ClearContents
Range("C67:F67").Select
Selection.Copy
Range("N42").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("C67:F68").Select
Selection.ClearContents
Range("N27").Select
Selection.Copy
Range("J31:K31").Select
ActiveSheet.Paste
Range("N28").Select
Selection.Copy
Range("J35:K35").Select
ActiveSheet.Paste
Range("N29").Select
Selection.Copy
Range("J27:K27").Select
ActiveSheet.Paste
Range("N30").Select
Selection.Copy
Range("C45:F45").Select
ActiveSheet.Paste
Range("N31").Select
Selection.Copy
Range("C49:F49").Select
ActiveSheet.Paste
Range("N32").Select
Selection.Copy
Range("C41:F41").Select
ActiveSheet.Paste
Range("N33").Select
Selection.Copy
Range("J45:K45").Select
ActiveSheet.Paste
Range("N34").Select
Selection.Copy
Range("J49:K49").Select
ActiveSheet.Paste
Range("N35").Select
Selection.Copy
Range("J41:K41").Select
ActiveSheet.Paste
Range("N36").Select
Selection.Copy
Range("C59:F59").Select
ActiveSheet.Paste
Range("N37").Select
Selection.Copy
Range("C63:F63").Select
ActiveSheet.Paste
Range("N38").Select
Selection.Copy
Range("C55:F55").Select
ActiveSheet.Paste
Range("N39").Select
Selection.Copy
Range("C31:F31").Select
ActiveSheet.Paste
Range("N40").Select
Selection.Copy
Range("C35:F35").Select
ActiveSheet.Paste
Range("N41").Select
Selection.Copy
Range("C67:F67").Select
ActiveSheet.Paste
Range("N42").Select
Selection.Copy
Range("C27:F27").Select
ActiveSheet.Paste
Range("N27:N42").Select
Selection.ClearContents
Range("K8").Select
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
End Sub