LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Look at numbers between 2 numbers and copy the complete rows to a worksheet.

I have only number in column A.
It could be a 5 or a 6.
Example:
A1=5
A2=6
A3=6
A4=5
A5=6
A6=6
A7=5
A9=6
A10=6
A11=6
A12=6

Now I want to copy ALL the complete rows between the cells with a 5.
Result:
Rows 2 and 3 should be copied to worksheet 1 starting in row 5
Rows 5 and 6 should be copied to worksheet 2 starting in row 5
Rows 9, 10, 11 and 12 should be copied to worksheet 3 starting in row
5

The input of the cells in column A can be different each month.

Can somebody help me with a VBA code?

 
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
AUTO COMPLETE NUMBERS Michele Excel Discussion (Misc queries) 5 December 11th 06 02:43 PM
copy down without changing cell numbers to bottom of worksheet santaviga Excel Programming 1 October 26th 06 11:17 AM
copy numbers from numbers+text cell Henk Excel Worksheet Functions 3 August 11th 06 02:48 PM
How do I restore header numbers for rows in a worksheet? JLGWhiz Excel Discussion (Misc queries) 2 July 24th 06 09:25 PM
How do I copy a formula with increasing worksheet numbers Harrison_05 Excel Discussion (Misc queries) 2 April 30th 06 12:57 AM


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

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

About Us

"It's about Microsoft Excel"