microsoft excel course - sort column data
Microsoft Office Training verified by visa - mastercard securecode about microsoft training company london ukadd this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and Help » microsoft excel course - Sort column data

microsoft excel course - Sort column data

The UK's most regular instructor-led training courses.
Training information: microsoft excel course · Excel training london · VBA courses London

resolvedResolved · Low Priority · Version Standard

Sort column data

Yogesh has attended:
No courses

by - delegate Yogesh [1 post] (2007 Dec 21 Fri, 09:31) replyReply

I want the excel vba statement to sort the data in a column.
I have tried the statement: -
Range("A1").SortSpecial SortOrder = x1Ascending

But now its not working. I get the compile error. Cant find project or library?

Also i dont know which library files are need to be installed.

Please give me the alternate statement for this?

Excel Advanced 1 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2003 2008 Dec 5 Fri Bayswater 0 FULL    
2002/XP 2008 Dec 10 Wed Tooting 0 FULL    
2003 2008 Dec 10 Wed Bloomsbury 0 FULL    
2007 2008 Dec 10 Wed Bloomsbury 2 book now £240 £245
2003 2008 Dec 12 Fri Southwark 4 book now £224 £235
2003 2008 Dec 17 Wed Southwark 1 book now £235 £240
Full Schedule: See all 95 Excel Advanced course dates.
Bookings currently available until 24th November 2009.

RE: Sort column data

by - trainer Katie gold contributer[214 posts] (2008 Jan 2 Wed, 09:59) replyReply

Hi Yogesh,

Thank you for your question.

Range("A1").SortSpecial will sort on the cell A1 only.

1) If the range region is fixed, then type in the region:
e.g. Range("A1:D40").Sort

2) If the range region is flexible, then type in the selection:
e.g.
Selection.CurrentRegion.Select
Selection.Sort Key1:=Range("A1")

3) To sort data by first column in ascending order, I would use the following 2 lines:
Selection.CurrentRegion.Select
Selection.Sort Key1:=Range("A2"), Order1:=xlAscending, _
Header:=xlGuess, OrderCustom:=1


Hope this helps.

Regards,
Katie


Related articles

· From the Classroom to the Corporate World
· How Excel Training Can Improve Your Company's Sales Process
· Advanced Excel Training - takes you to the next level
· How to Create Better Excel Spreadsheets: Part Three
· Microsoft Excel Training Courses or Consultants: Which Is Better For Your Company?

Excel tip:

Bring up formatting dialog box

Ctrl+1

View all Excel hints and tips

Rate this page:
4.0/5 (3 votes cast)
Institute of IT Training - Accredited Training Provider Microsoft Certified Partner
microsoft office
Microsoft Office Specialist Authorised Testing Centre (MOS and MCAS)

Prodigy Platinum Learning Partner

Institute of IT Training - Accredited Training Provider Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Microsoft Office training
Pricing and availability
Training schedule
Training venues

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
microsoft access courses · microsoft training access course
microsoft+access+training · access courses in london

Training Information

Training Articles

AddThis Social Bookmark Button What's this?
Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo Add to Diigo Add to Mr. Wong Add to Linkarena Add to Power Oldie Add to Folkd Add to Jumptags Add to Upchuckr Add to Simpy Add to StumbleUpon Add to Slashdot Add to Netscape Add to Furl Add to Spurl Add to Blinklist Add to Blogmarks Add to Technorati Add to Newsvine Add to Blinkbits Add to Ma.Gnolia Add to Smarking Add to Netvouz