Hi
Below is some code I have. There's actually a lot of copying and pasting going on between workbooks (more than I show below).
I would like to speed up the macro and was wondering is there better faster way to copy paste a number of cells on a worksheet that have been identified with a ActiveCell.Offset to another workbook sheet.
Cheers in advance
Below is some code I have. There's actually a lot of copying and pasting going on between workbooks (more than I show below).
I would like to speed up the macro and was wondering is there better faster way to copy paste a number of cells on a worksheet that have been identified with a ActiveCell.Offset to another workbook sheet.
Cheers in advance
Code:
Sub CopyPaste()
Application.Calculation = xlCalculationManual
Application.ScreenUpdating = False
Application.DisplayStatusBar = False
Dim wsDestA As Worksheet 'Destination workbook + sheet
Set wsDestA = Workbooks("SRS Bulk Sample Lodgement.xlsm").Worksheets("Atmospheric") 'Destination workbook + sheet
'Sample Date
ActiveCell.Offset(0, 1).Copy
wsDestA.Range("B56535").End(xlUp).Offset(1, 0).PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
'Sample ID
ActiveCell.Offset(0, 2).Copy
wsDestA.Range("A65536").End(xlUp).Offset(1, 0).PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
'First Name
ActiveCell.Offset(0, 3).Copy
wsDestA.Range("L65536").End(xlUp).Offset(1, 0).PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
'Last Name
ActiveCell.Offset(0, 4).Copy
wsDestA.Range("K65536").End(xlUp).Offset(1, 0).PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
'DoB
ActiveCell.Offset(0, 18).Copy
wsDestA.Range("M1000000").End(xlUp).Offset(1, 0).PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
'Gender
ActiveCell.Offset(0, 19).Copy
wsDestA.Range("N65536").End(xlUp).Offset(1, 0).PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
Application.DisplayStatusBar = True
End Sub