Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Sort a Row in an Excel SpreadsheetContent of Sort a Row in an Excel Spreadsheet.vbsMD5 Hash: 4E2F02D3F418EBC4C96480D04F406100 |
||
Const xlAscending = 1
Const xlNo = 2 Const xlSortRows = 2 Set objExcel = CreateObject("Excel.Application") objExcel.Visible = True Set objWorkbook = objExcel.Workbooks.Add Set objWorksheet = objWorkbook.Worksheets(1) objWorksheet.Cells(1, 1) = "C" objWorksheet.Cells(1, 2) = "D" objWorksheet.Cells(1, 3) = "B" objWorksheet.Cells(1, 4) = "A" Set objRange = objExcel.ActiveCell.EntireRow objRange.Sort objRange, xlAscending, , , , , , xlNo, , , xlSortRows | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |