View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
OssieMac OssieMac is offline
external usenet poster
 
Posts: 2,510
Default Sorting a Column in ascending order in excel vba

Hi,

Why not try recording the code? Great method for getting the syntax.

--
Regards,

OssieMac


"yogeshyl" wrote:

I need a code to sort a column in a excel file in ascending order. I had used
the below code
Range("A1").SortSpecial SortOrder:=xlAscending

but its giving error. Kindly guide me on this.

Yogesh