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: 1
Default Sorting through multi-item list

I have a list of items with a potentially changing count - sometimes 6,
sometimes 7, etc. These lists are located in a single worksheet,
separated with a blank space. My goal is to create a macro which can
move through this sheet, delete those lists I don't want to keep,
alphabetically sort those I do want to keep, and then copy/paste the
sorted ranges into the final document resting place.

I currently have macros which can count 6 items, another for 7 items,
another for 8 items, etc. I want to replace these individual count
dependant macros with a more dynamic macro. Based on the source log
file, here is the logic that the macro will need to follow:

========
insert new worksheet
Select from A1 to first blank row -- delete selected rows, move rows
up
Select from A1 to first blank row -- sort selection alphabetically on
column A, no header
Narrow selection to B1:F___ -- cut
move to previously inserted worksheet
Select from A1 to first blank cell in Row 1 - paste selection
return to first worksheet
(Repeat this step X times)
============

I'm not married to this logic either, I just tried condencing the steps
down into as generic and simple a process as I could.

I've tried sorting through various excel/VBA help forums, but I don't
need the last blank cell in the entire row - I need the next blank cell
in a series, and then to work with just that data. I'm pretty new to
VBA scripting, so I'm sure this is somewhat of a cakewalk to seasoning
programmers, but to me it's stalled my automated export process for 3
days now. Any suggestions would be ever so gratefully appreciated!

- Sondra

 
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
How to find a value with multi-column, multi-record list Dallasm Excel Worksheet Functions 1 May 30th 10 05:40 PM
Conditional formatting - multi-item text list String Excel Worksheet Functions 4 August 5th 06 02:06 PM
Last list item selected in a Multi-Select list box? Brian Excel Programming 3 December 5th 05 09:12 PM
Selecting an Item from a List and getting a different item to pop. Matt Excel Worksheet Functions 1 December 7th 04 02:37 PM
Extract values from a multi-select multi-column list-box Peter[_20_] Excel Programming 5 September 28th 03 04:04 PM


All times are GMT +1. The time now is 08:19 AM.

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"