Excel macro paste row for certain num of rows
Closed
mazaman
Posts
2
Registration date
Monday September 14, 2009
Status
Member
Last seen
September 17, 2009
-
Sep 15, 2009 at 10:23 AM
Excelguru Posts 261 Registration date Saturday April 11, 2009 Status Member Last seen June 21, 2011 - Sep 18, 2009 at 11:26 PM
Excelguru Posts 261 Registration date Saturday April 11, 2009 Status Member Last seen June 21, 2011 - Sep 18, 2009 at 11:26 PM
Related:
- Excel macro paste row for certain num of rows
- Saints row 2 cheats - Guide
- Excel apk for pc - Download - Spreadsheets
- Spell number in excel without macro - Guide
- Kernel for excel - Download - Backup and recovery
- How to delete a row in a table in word - Guide
2 responses
Excelguru
Posts
261
Registration date
Saturday April 11, 2009
Status
Member
Last seen
June 21, 2011
307
Sep 16, 2009 at 10:54 PM
Sep 16, 2009 at 10:54 PM
Hello
Just try
Rows(selection.row).Copy
Rows(Selection.Rows.Count ).Select
ActiveSheet.Paste
Just try
Rows(selection.row).Copy
Rows(Selection.Rows.Count ).Select
ActiveSheet.Paste
Excelguru
Posts
261
Registration date
Saturday April 11, 2009
Status
Member
Last seen
June 21, 2011
307
Sep 18, 2009 at 11:26 PM
Sep 18, 2009 at 11:26 PM
Hello,
Try this
range(cells(selection.row,1),cells(selection.row+count,8)).copy
Try this
range(cells(selection.row,1),cells(selection.row+count,8)).copy
Sep 17, 2009 at 10:17 AM
There is 1 more restriction however. The row copied is within the first 8 columns, and not beyond as those columns contain other data.
The code Excelguru suggested...
Rows(selection.row).Copy
Rows(Selection.Rows.Count ).Select
ActiveSheet.Paste
..seems to work for the entire row, but I only want to copy the first 8 column of the row, and extend the first 8 column into the rows below (number of rows determined by count).