Hello,
I'm hoping that you could help me a little;
I'm trying to copy the data from one worksheet(sheet2) to another (sheet1) using ActiveCell.Offset.
I've done some searching and not really found anything helpful other than actually using something like;
Range(“B2”).Select
Selection.Copy
But I hear that ActiveCell can do everything in one line.
My 'Code';
Sub Test()
Dim Master As Worksheet
Dim Template As Worksheet
Set Master = Sheet1
Set Template = Sheet2
Master.Activate
Range("A1").Select
Template.Activate
Range("A1").Select
AddData:
ActiveCell.Offset(0, 15).Value = ActiveCell.Offset(0, 0).Value
ActiveCell.Offset(0, 18).Value = ActiveCell.Offset(0, 1).Value
End Sub
Can someone point me in the right direction?
Many thanks,
.R
I'm hoping that you could help me a little;
I'm trying to copy the data from one worksheet(sheet2) to another (sheet1) using ActiveCell.Offset.
I've done some searching and not really found anything helpful other than actually using something like;
Range(“B2”).Select
Selection.Copy
But I hear that ActiveCell can do everything in one line.
My 'Code';
Sub Test()
Dim Master As Worksheet
Dim Template As Worksheet
Set Master = Sheet1
Set Template = Sheet2
Master.Activate
Range("A1").Select
Template.Activate
Range("A1").Select
AddData:
ActiveCell.Offset(0, 15).Value = ActiveCell.Offset(0, 0).Value
ActiveCell.Offset(0, 18).Value = ActiveCell.Offset(0, 1).Value
End Sub
Can someone point me in the right direction?
Many thanks,
.R