LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 191
Default Sorting Macro

Hi,

I have a worksheet that has multiple tabs in it. Each tabe is formated the
same way and pulls all of its data via the vlookup formula. Within a tab
there are headings such as

A B C D
Provider # Client Name Beds Occupancy

The tab uses the "provider number" to pull in the appropriate data for that
particular client. Within that tab the information is also sorted by county
and then subtotaled. For example: The above layout may have Cuyahoga county
with 5 clients listed. Below the list of clients there will be a row totaling
the clients within cuyahoga only. then there will be a space and the next
county will start, such as Summit county and so on.

What I need to do is sort each county by its occupancy from highest to
lowest. Since the worksheet is so large it will take much to long to manually
sort therefore I was trying to make a macro. The issue I keep running into is
the macro does not remember that I want to sort "column D" by "highest to
lowest." The macro runs once and then the sort function defaults back to
sorting column A by A to Z.

Let me know if you think this is something that can be fixed or if it is
just an Excel glitch that I can't get around.

Thanks,

Jamie
 
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
Help with Macro for sorting Brad[_6_] Excel Worksheet Functions 2 August 10th 09 04:20 PM
sorting with macro button vcff Excel Discussion (Misc queries) 10 October 18th 07 04:12 PM
Sorting with a macro or a formula Shu of AZ Excel Discussion (Misc queries) 8 January 7th 07 08:16 PM
sorting using macro Ross Excel Discussion (Misc queries) 2 September 15th 05 10:13 PM
macro for sorting cherrynich Excel Discussion (Misc queries) 1 December 30th 04 04:47 PM


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