Click here to Skip to main content
15,895,740 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
The below code is working fine for me but i need to copy the entire column in sheet2 starting from 9th row how to acheive it ?
please help.

Sheets("Sheet1").Select
Columns("D : D").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Sheet2").Select
Sheet2.Columns("D : D").Select
ActiveSheet.Paste
Posted
Updated 20-Sep-14 1:20am
v3
Comments
Richard MacCutchan 20-Sep-14 7:28am    
Use a Range object.
Member 11096593 20-Sep-14 7:34am    
please let me know if i use it i'm getting an error
Richard MacCutchan 20-Sep-14 7:47am    
Check what you are doing and read the documentation. It is perfectly easy in Excel to record a macro that does what you need, and then edit it and add any changes or extra code.

1 solution

Try this:
VB
ThisWorkbook.Worksheets("Sheet1").Range("A9:A" & Cells.Count).Copy ThisWorkbook.Worksheets("Sheet2").Range("A9")


More: Range.Copy method[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900