I have this current code that copies and pastes values in a loop. It works fine, but it takes a long time to complete when there is a lot of data. I think there is a more efficient way to do this with .value, but I am needing some advice on how to implement.
Sub Looping() Dim OFFSETDOWN As String Dim OFFSETLEFT As String Dim OFFSETRITE As String Dim FILEDONE As String OFFSETDOWN = 1 OFFSETLEFT = 0 FILEDONE = "Calculate" Sheets("Emp Data").Select Range("E5").Select Application.CutCopyMode = False Selection.Copy Sheets("Results").Select Range("D1").Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False Application.CutCopyMode = False Sheets("Emp Data").Select Range("A10").Select ActiveCell.Offset(2, 0).Select Do Until FILEDONE = "" 'OFFSETDOWN = 0 'OFFSETLEFT = 0 'OFFSETRITE = 1 Application.CutCopyMode = False Selection.Copy Sheets("Results").Select Range("D2").Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False Application.CutCopyMode = False Sheets("Emp Data").Select ActiveCell.Offset(0, 1).Select Application.CutCopyMode = False Selection.Copy Sheets("Results").Select Range("D14").Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False Application.CutCopyMode = False Sheets("Emp Data").Select ActiveCell.Offset(0, 4).Select Application.CutCopyMode = False Selection.Copy Sheets("Results").Select Range("D3").Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False Application.CutCopyMode = False Sheets("Emp Data").Select ActiveCell.Offset(0, 1).Select Application.CutCopyMode = False Selection.Copy Sheets("Results").Select Range("D4").Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False Application.CutCopyMode = False Sheets("Emp Data").Select ActiveCell.Offset(0, 2).Select Application.CutCopyMode = False Selection.Copy Sheets("Results").Select Range("D5").Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False Application.CutCopyMode = False Sheets("Emp Data").Select ActiveCell.Offset(0, 1).Select Application.CutCopyMode = False Selection.Copy Sheets("Results").Select Range("D6").Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False Application.CutCopyMode = False Sheets("Emp Data").Select ActiveCell.Offset(0, 1).Select Application.CutCopyMode = False Selection.Copy Sheets("Results").Select Range("D13").Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False Application.CutCopyMode = False Sheets("Emp Data").Select ActiveCell.Offset(0, 1).Select Application.CutCopyMode = False Selection.Copy Sheets("Results").Select Range("D15").Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False Application.CutCopyMode = False Sheets("Emp Data").Select ActiveCell.Offset(0, 1).Select Application.CutCopyMode = False Selection.Copy Sheets("Results").Select Range("D8").Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False Application.CutCopyMode = False Sheets("Emp Data").Select ActiveCell.Offset(0, 1).Select Application.CutCopyMode = False Selection.Copy Sheets("Results").Select Range("D10").Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False Application.CutCopyMode = False Sheets("Emp Data").Select ActiveCell.Offset(0, 1).Select Application.CutCopyMode = False Selection.Copy Sheets("Results").Select Range("D11").Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False Application.CutCopyMode = False Range("J10").Select Application.CutCopyMode = False Selection.Copy Sheets("Emp Data").Select ActiveCell.Offset(0, 9).Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False Application.CutCopyMode = False Sheets("Results").Select Range("J12").Select Application.CutCopyMode = False Selection.Copy Sheets("Emp Data").Select ActiveCell.Offset(0, 1).Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False Application.CutCopyMode = False Sheets("Results").Select Range("J11").Select Application.CutCopyMode = False Selection.Copy Sheets("Emp Data").Select ActiveCell.Offset(0, 1).Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False Application.CutCopyMode = False Sheets("Results").Select Range("d8").Select Application.CutCopyMode = False Selection.Copy Sheets("Emp Data").Select ActiveCell.Offset(0, 1).Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False Application.CutCopyMode = False Sheets("Results").Select Range("d3").Select Application.CutCopyMode = False Selection.Copy Sheets("Emp Data").Select ActiveCell.Offset(0, 1).Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False Application.CutCopyMode = False Sheets("Results").Select Range("j26").Select Application.CutCopyMode = False Selection.Copy Sheets("Emp Data").Select ActiveCell.Offset(0, 1).Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False Application.CutCopyMode = False Sheets("Results").Select Range("j27").Select Application.CutCopyMode = False Selection.Copy Sheets("Emp Data").Select ActiveCell.Offset(0, 1).Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False Application.CutCopyMode = False Sheets("Emp Data").Select ActiveCell.Offset(1, -29).Select FILEDONE = ActiveCell.Value Loop End Sub I have tried implementing the .value method from other tutorials, but I have not been able to figure out how to properly implement it. Any help with improving this code and understanding this topic more would be greatly appreciated.
Sheets("Results").Range("D1").Value = Sheets("Emp Data").Range("E5").Value.