Excel 2007 Macro

Closed
Mahe - Aug 11, 2011 at 03:18 AM
venkat1926 Posts 1863 Registration date Sunday June 14, 2009 Status Contributor Last seen August 7, 2021 - Aug 11, 2011 at 07:38 AM
Hello,

Could you help me in writing a macro for exporting data from certain cells in sheet 1 to sheet 2.

I use Windows 7 and excel 2007

Thanks!!

Related:

1 response

venkat1926 Posts 1863 Registration date Sunday June 14, 2009 Status Contributor Last seen August 7, 2021 811
Aug 11, 2011 at 07:38 AM
the question is vague

suppose you want to transfer cell B1 in sheet1 to the first available row and in column A in sheet 2


the macro will be something like this

With Worksheets("sheet1")
.Range("B1").Copy
With Worksheets("sheet2")
.Cells(Rows.Count, "A").End(xlUp).Offset(1, 0).PasteSpecial
End With
End With
0