Hi,
I have sheets in t (he same workbook that I need the values of the cells to be copied and pasted from sheet2 to sheet1 depending on a name selected from a drop down list. However, the cells in sheet1 are spread over the sheet.
Here is an example of what I have done so far for the first two cells, with 19 more cells to be done.
Sub copy()
Dim sht1 As Worksheet
Dim sht2 As Worksheet
Set sht1 = Worksheets("Sheet1")
Set sht2 = Worksheets("Sheet2")
sht2.Range("D2").copy
sht1.Range("A8").PasteSpecial xlPasteValues, Transpose:=True
sht2.Range("F2").copy
sht1.Range("B8").PasteSpecial xlPasteValues, Transpose:=True
sht2.Range("E2").copy
sht1.Range("A16").PasteSpecial xlPasteValues, Transpose:=True
sht2.Range("G2").copy
sht1.Range("B16").PasteSpecial xlPasteValues, Transpose:=True
Is there a more efficient method to done this?
Any help would be appreciated.
Thanks,
Darryll
I have sheets in t (he same workbook that I need the values of the cells to be copied and pasted from sheet2 to sheet1 depending on a name selected from a drop down list. However, the cells in sheet1 are spread over the sheet.
Here is an example of what I have done so far for the first two cells, with 19 more cells to be done.
Sub copy()
Dim sht1 As Worksheet
Dim sht2 As Worksheet
Set sht1 = Worksheets("Sheet1")
Set sht2 = Worksheets("Sheet2")
sht2.Range("D2").copy
sht1.Range("A8").PasteSpecial xlPasteValues, Transpose:=True
sht2.Range("F2").copy
sht1.Range("B8").PasteSpecial xlPasteValues, Transpose:=True
sht2.Range("E2").copy
sht1.Range("A16").PasteSpecial xlPasteValues, Transpose:=True
sht2.Range("G2").copy
sht1.Range("B16").PasteSpecial xlPasteValues, Transpose:=True
Is there a more efficient method to done this?
Any help would be appreciated.
Thanks,
Darryll