HELP about macro copy and paste
Solved/Closed
marvs
-
Apr 4, 2011 at 02:03 PM
venkat1926 Posts 1863 Registration date Sunday June 14, 2009 Status Contributor Last seen August 7, 2021 - Apr 20, 2011 at 11:33 PM
venkat1926 Posts 1863 Registration date Sunday June 14, 2009 Status Contributor Last seen August 7, 2021 - Apr 20, 2011 at 11:33 PM
Related:
- HELP about macro copy and paste
- Spell number in excel without macro - Guide
- Copy and paste fonts - Guide
- How to paste photo in resume - Guide
- Macro excel download - Download - Spreadsheets
- Excel macro to create new sheet based on value in cells - Guide
2 responses
venkat1926
Posts
1863
Registration date
Sunday June 14, 2009
Status
Contributor
Last seen
August 7, 2021
811
Apr 20, 2011 at 11:33 PM
Apr 20, 2011 at 11:33 PM
yes for current region you can use a range
something like this
the dot before "range" is important.
it will copy only from A1 to E10. modify to suit you
something like this
With Worksheets("sheet1") .range("A1:e10").copy
the dot before "range" is important.
it will copy only from A1 to E10. modify to suit you
venkat1926
Posts
1863
Registration date
Sunday June 14, 2009
Status
Contributor
Last seen
August 7, 2021
811
Apr 9, 2011 at 07:18 AM
Apr 9, 2011 at 07:18 AM
not clear.
you want to copy the two column in sheet 1 to sheet2
if the old data is removed and new data entered you want the new data is to be copied to sheet2 below the data already copied . if this is so
try this macro
you want to copy the two column in sheet 1 to sheet2
if the old data is removed and new data entered you want the new data is to be copied to sheet2 below the data already copied . if this is so
try this macro
Sub test() With Worksheets("sheet1") .Range("A1").CurrentRegion.Copy With Worksheets("sheet2") .Cells(Rows.Count, "A").End(xlUp).Offset(1, 0).PasteSpecial End With End With Application.CutCopyMode = False End Sub