Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default sort problem

i have a sheet with 6 colums

REC # - CUST - PART NUMBER - PL - QTY HND - WHSE QTY

4325 - 1312 - 1105533 - 5 - 0 - 0

i want to sort this info by part number. i want the part number t
start on top as smallest part number to biggest. if i just sort th
column the rest of the data stands still, i knew that, but i cant fin
out how to get the rest of the data to sort with it. i basically nee
to sort the info by part number and keep the rows together. so all th
info is correct.sort the rows by the info in one column. something i
that natur

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default sort problem

You need to expand the selection so that the other columns are order
according to Part Number as well.

That's all there is to it.

Robert
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default sort problem

appreciate the help got it going but now im getting an error

The sort reference is not valid. Make sure that it's within the data
you want to sort, and the first sort box isnt the same or blank. i put
a macro into a button that si also doing other things. ive wewnt through
every possiblity i can think of? this is what i have

ActiveSheet.Range("B2:B905").Select
Selection.Sort Key1:=Range("B2"), Order1:=xlAscending,
Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom


thats from the macro i ran, for some reaosn it wont work only if i run
as macro?


---
Message posted from http://www.ExcelForum.com/

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
Sort Problem Abdul Shakeel Excel Discussion (Misc queries) 0 February 7th 10 12:22 PM
Help! I am having a problem with sort! RobertD[_2_] Excel Discussion (Misc queries) 2 August 29th 08 07:56 PM
Sort problem - help! Golfinray Excel Discussion (Misc queries) 3 November 14th 07 03:46 PM
sort problem cindy Excel Worksheet Functions 0 October 2nd 07 02:08 AM
A "sort" problem comotoman Excel Discussion (Misc queries) 1 September 28th 05 10:48 PM


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