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: 5
Default Sorting rows beneath headlines in another sheet

I have 40 rows on sheet1 who are sorted by column D. The data in D column
can contain 4 different values - lets say "Alpha", "Beta", "Delta" and
"Gamma" and also be empty "" .

I have 4 different "areas" with headlines named "Alpha", "Beta", "Delta" and
"Gamma" with 20 rows under each headline in sheet2. The rows from sheet1
should be copy-pasted (or "mirrored" if no loops) out to each and don't
considered/cared for the empty rows(= "" in cell D). If there is more than
20 rows of "Alpha", "Beta", "Delta" or "Gamma", it should be an error msgbox
telling "to many rows".

I prefere to do it without a loop approach if possible because of the time
consumtion. It should all start with a macro button in the sheet. I already
have a button to sort them in order, but that might not be necessary...

Extra: Actually, It isn't the whole row that should be pasted to sheet2,
just the cells in column A and B. I'm just embarrassed to put down the whole
problem in you lap...:-)

Anybody with a helping hand? All suggestions, hints or code to deal with
parts of the problem are welcome. How to match and copy each row, how to
decide which row is free for the "next" line to be paste into etc.

I got Excel 2002 if that's matter.

/Regards


 
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
Header Row with Option to Shrink/Expand Rows Beneath kippers Excel Worksheet Functions 2 June 22nd 09 12:50 PM
Highlighting headlines filtered column when using autofilter Axel Excel Discussion (Misc queries) 0 December 11th 07 02:35 PM
sorting a sheet with outlined rows Ron Excel Discussion (Misc queries) 0 June 8th 06 04:25 PM
Sorting rows to a another sheet Dataminer Excel Worksheet Functions 6 December 7th 05 07:23 PM
Realtime Automatic sorting of data in rows in new work sheet Gazzali Excel Worksheet Functions 0 June 23rd 05 09:35 AM


All times are GMT +1. The time now is 11:00 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"