Thread: sort a range
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Frank Kabel Frank Kabel is offline
external usenet poster
 
Posts: 3,885
Default sort a range

Hi
try to record a macro whild applying your sort criteria manually

--
Regards
Frank Kabel
Frankfurt, Germany

Maileen wrote:
Hi,

I have a table where A1 and B1 contains respectively "Software" and
"Amount".
I would like to sort range (A2:B10) based on ascending sorting of
Software.
I tried several things with range("A2:B10").Sort(Key1:=Range("A1"))
but nothing works...

could you help me please ?
thx,
Maileen