hi excel experts,
i used the following code to copy data from sheet 1 to sheet 2,
Sub Save()
Dim LastRow As Integer
LastRow = Worksheets("sheet2").Range("C65536").End(xlUp).Row
Sheets("sheet1").Range("H5").Copy Worksheets("sheet2").Cells(LastRow, 3)
With Worksheets("sheet1").Activate
Range("H5").Select
End With
End Sub
Notes:
1. i was trying to lookup cell A1 (sheet 1) and take the cell value of "H5".
2. The cell value of "H5" should be copied to 3rd row of sheet 2 matching the column A, where the candidates roll no. is mentioned.
e.g.
clm A clm C
101 cell value (matching A1 of sheet 1)
102
103
thank you,
Regards,
ganeshm
i used the following code to copy data from sheet 1 to sheet 2,
Sub Save()
Dim LastRow As Integer
LastRow = Worksheets("sheet2").Range("C65536").End(xlUp).Row
Sheets("sheet1").Range("H5").Copy Worksheets("sheet2").Cells(LastRow, 3)
With Worksheets("sheet1").Activate
Range("H5").Select
End With
End Sub
Notes:
1. i was trying to lookup cell A1 (sheet 1) and take the cell value of "H5".
2. The cell value of "H5" should be copied to 3rd row of sheet 2 matching the column A, where the candidates roll no. is mentioned.
e.g.
clm A clm C
101 cell value (matching A1 of sheet 1)
102
103
thank you,
Regards,
ganeshm