#1   Report Post  
Posted to microsoft.public.excel.setup
Art Art is offline
external usenet poster
 
Posts: 587
Default Sorting data

Is there a way to automaticaly sort data. For E.G. I have a list of venders
with their names in column B, Telephone No. in column C, Addresse in column D
and so on. And then when I need to insert a new vender I want to use a macro
to insert a new line in the top of the list, put in all the information, and
then I want that it should sort all the venders again so it should be
everything in order. Is there a way it should get automaticaly done or in the
macro? I tried doing it in the macro but it only sorted part of the data, not
the whole list?! Please help!
  #2   Report Post  
Posted to microsoft.public.excel.setup
external usenet poster
 
Posts: 35,218
Default Sorting data

How about just adding them to the bottom of the data and when you're done, you
could sort the range.

In xl2003, you can apply data|filter|autofilter to the range and use the
dropdown arrow to sort your data.

Debra Dalgleish has a technique at her site that adds invisible rectangles in
the headers and then sorts the data by that field when you click on one of those
rectangles.

http://contextures.com/xlSort02.html

art wrote:

Is there a way to automaticaly sort data. For E.G. I have a list of venders
with their names in column B, Telephone No. in column C, Addresse in column D
and so on. And then when I need to insert a new vender I want to use a macro
to insert a new line in the top of the list, put in all the information, and
then I want that it should sort all the venders again so it should be
everything in order. Is there a way it should get automaticaly done or in the
macro? I tried doing it in the macro but it only sorted part of the data, not
the whole list?! Please help!


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.setup
Art Art is offline
external usenet poster
 
Posts: 587
Default Sorting data

I cannot add it in the bottem of the list, because I made a combo dropdown
list from all the venders and if I'll add by the bottom of the list, then it
won't be part of the combo dropdown list. I want all venders always to be in
the drop down list. How can I do that?

"Dave Peterson" wrote:

How about just adding them to the bottom of the data and when you're done, you
could sort the range.

In xl2003, you can apply data|filter|autofilter to the range and use the
dropdown arrow to sort your data.

Debra Dalgleish has a technique at her site that adds invisible rectangles in
the headers and then sorts the data by that field when you click on one of those
rectangles.

http://contextures.com/xlSort02.html

art wrote:

Is there a way to automaticaly sort data. For E.G. I have a list of venders
with their names in column B, Telephone No. in column C, Addresse in column D
and so on. And then when I need to insert a new vender I want to use a macro
to insert a new line in the top of the list, put in all the information, and
then I want that it should sort all the venders again so it should be
everything in order. Is there a way it should get automaticaly done or in the
macro? I tried doing it in the macro but it only sorted part of the data, not
the whole list?! Please help!


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.setup
external usenet poster
 
Posts: 22,906
Default Sorting data

Use a Dynamic Range for the list.

See Debra Dalgleish's site for defing a dynamic range name.

http://www.contextures.on.ca/xlNames01.html#Dynamic

Also useful may be her info on Combo Boxes.

http://www.contextures.on.ca/xlDataVal11.html


Gord Dibben MS Excel MVP


On Tue, 28 Nov 2006 10:54:32 -0800, art wrote:

I cannot add it in the bottem of the list, because I made a combo dropdown
list from all the venders and if I'll add by the bottom of the list, then it
won't be part of the combo dropdown list. I want all venders always to be in
the drop down list. How can I do that?

"Dave Peterson" wrote:

How about just adding them to the bottom of the data and when you're done, you
could sort the range.

In xl2003, you can apply data|filter|autofilter to the range and use the
dropdown arrow to sort your data.

Debra Dalgleish has a technique at her site that adds invisible rectangles in
the headers and then sorts the data by that field when you click on one of those
rectangles.

http://contextures.com/xlSort02.html

art wrote:

Is there a way to automaticaly sort data. For E.G. I have a list of venders
with their names in column B, Telephone No. in column C, Addresse in column D
and so on. And then when I need to insert a new vender I want to use a macro
to insert a new line in the top of the list, put in all the information, and
then I want that it should sort all the venders again so it should be
everything in order. Is there a way it should get automaticaly done or in the
macro? I tried doing it in the macro but it only sorted part of the data, not
the whole list?! Please help!


--

Dave Peterson


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
ranking query JaimeTimbrell Excel Discussion (Misc queries) 2 February 16th 06 08:09 AM
sorting data and automatic graphs timc Charts and Charting in Excel 3 January 27th 06 08:37 PM
Inserting a new line when external data changes Rental Man Excel Discussion (Misc queries) 0 January 11th 06 07:05 PM
Help PLEASE! Not sure what answer is: Match? Index? Other? baz Excel Worksheet Functions 7 September 3rd 05 03:47 PM
how do you prevent data from changing values when sorting linked . Cassie Excel Discussion (Misc queries) 0 March 4th 05 10:45 AM


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