#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 863
Default Copy/Paste

Turn on the macro recorder and insert the rows. Then modify the code to
determine the criteria for the number of rows to insert. BTW, this sort of
thing is best done by processing the rows from the bottom up. If you do it
from the top down, after inserting, say, 3 rows at row 5, what was row 6 is
now row 9, which causes havoc with For/Next loops.

On Sat, 30 Oct 2004 13:50:54 +0100, Robert wrote:

I have 1500 rows of data in columns A:S
There is always data in columns A:K, the incidence of entries in L:S
varies.
When, for example, there is an entry in column L, row 5, I want to
insert a row immediately after row 5, copy A5:J5 to A6:J6 and copy the
entry in L5 to K6.
When there are entries in columns L,M,N etc, I want to insert the
corresponding number of rows and repeat the above copy/paste routine
accordingly.
Grateful for any advice.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Copy/Paste

Myrna

Many thanks

Robert

In message , Myrna Larson
writes
Turn on the macro recorder and insert the rows. Then modify the code to
determine the criteria for the number of rows to insert. BTW, this sort of
thing is best done by processing the rows from the bottom up. If you do it
from the top down, after inserting, say, 3 rows at row 5, what was row 6 is
now row 9, which causes havoc with For/Next loops.

On Sat, 30 Oct 2004 13:50:54 +0100, Robert wrote:

I have 1500 rows of data in columns A:S
There is always data in columns A:K, the incidence of entries in L:S
varies.
When, for example, there is an entry in column L, row 5, I want to
insert a row immediately after row 5, copy A5:J5 to A6:J6 and copy the
entry in L5 to K6.
When there are entries in columns L,M,N etc, I want to insert the
corresponding number of rows and repeat the above copy/paste routine
accordingly.
Grateful for any advice.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't Copy and Paste or Paste Special between Excel Workbooks wllee Excel Discussion (Misc queries) 5 April 29th 23 03:43 AM
Copy, paste without file name referenced after paste AusTexRich Excel Discussion (Misc queries) 6 September 23rd 08 02:57 AM
Copy; Paste; Paste Special are disabled Mack Neff[_3_] Excel Discussion (Misc queries) 0 April 28th 08 06:29 PM
Excel cut/Paste Problem: Year changes after data is copy and paste Asif Excel Discussion (Misc queries) 2 December 9th 05 05:16 PM
Macro to Copy/Paste then Paste to Next Line tomkarakowski Excel Programming 1 May 28th 04 01:19 AM


All times are GMT +1. The time now is 10:44 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"