Intranet Journal

Go Back   IT Management Forum > Intranet Journal

Intranet Journal The new discussion forum for Intranet Journal readers. Leave comments and questions for IJ authors. Suggest story ideas and provide feedback.

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-21-2004, 01:53 AM
priya priya is offline
Registered User
 
Join Date: Sep 2004
Posts: 2
Post regarding vbscript

can u pls help me how to sort an excel sheet using vbscript.The excel sheet contains only one column and around 500 rows.Now i need to sort it out in alphabetical order using VBScript
Reply With Quote
  #2 (permalink)  
Old 09-23-2004, 06:49 PM
rich96 rich96 is offline
Member
 
Join Date: Sep 2004
Posts: 1
Lightbulb vbscript

your going to have to use VBA. if your not very familar with the code let me give you steps on how to let Excel create the 'code' for you.

First open up the spreadsheet.
Then goto Tools - > Macro - > Record New Macro.
Do your sort (Data - > Sort) Or whatever formating
Then go back up to Tools - > Macro - > Stop Recording Macro
Then you will need to go to Tools - > Macro - > Visual Basic Editor

you can view/change the code under the module folder.

Or you can use this code below in a Module. this is simple sort macro.

Cells.Select
Selection.Sort Key1:=Range("A1"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal

Hope this helped.
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -5. The time now is 03:18 AM.





Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0