Click here to Skip to main content
15,892,161 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Adding Entries of Two columns in SQL database using VBasic. Pin
Johan Hakkesteegt12-Nov-09 0:30
Johan Hakkesteegt12-Nov-09 0:30 
GeneralRe: Adding Entries of Two columns in SQL database using VBasic. Pin
jeshra27912-Nov-09 0:58
jeshra27912-Nov-09 0:58 
GeneralRe: Adding Entries of Two columns in SQL database using VBasic. Pin
Johan Hakkesteegt12-Nov-09 1:04
Johan Hakkesteegt12-Nov-09 1:04 
QuestionSorting Excel range of cells by column in VB Pin
nhsal6911-Nov-09 22:50
nhsal6911-Nov-09 22:50 
AnswerRe: Sorting Excel range of cells by column in VB Pin
Johan Hakkesteegt11-Nov-09 23:41
Johan Hakkesteegt11-Nov-09 23:41 
GeneralRe: Sorting Excel range of cells by column in VB Pin
nhsal6912-Nov-09 0:20
nhsal6912-Nov-09 0:20 
GeneralRe: Sorting Excel range of cells by column in VB [modified] Pin
Johan Hakkesteegt12-Nov-09 0:26
Johan Hakkesteegt12-Nov-09 0:26 
GeneralRe: Sorting Excel range of cells by column in VB Pin
nhsal6912-Nov-09 1:05
nhsal6912-Nov-09 1:05 
N1, N2 and N3 have text in them
[quote]
Which one is it, text or numbers, or both?
[/quote]


It's both the first 3 rows contain text which should be ignored (the headers), the rest of the rows in the column contain numbers which need to be sorted in descending order.

This process should sort columns I, J, K, L, M by the numerical values in N from largest value in column N to the smallest



What the code:

osheet.Range("I4:N50000").Sort(Key1:=osheet.Range("N4:N50000"))

Appears to do, is sort the columns I, J, K, L, M, N in ascending order by the value in each column in row 4.

So for example the contents of column I move to column J because I4 has a larger value in it than J4

Does this now make sense to you??
GeneralRe: Sorting Excel range of cells by column in VB Pin
Johan Hakkesteegt12-Nov-09 2:03
Johan Hakkesteegt12-Nov-09 2:03 
GeneralRe: Sorting Excel range of cells by column in VB Pin
Johan Hakkesteegt12-Nov-09 3:16
Johan Hakkesteegt12-Nov-09 3:16 
GeneralRe: Sorting Excel range of cells by column in VB Pin
Oakman12-Nov-09 16:03
Oakman12-Nov-09 16:03 
GeneralRe: Sorting Excel range of cells by column in VB Pin
Johan Hakkesteegt12-Nov-09 20:18
Johan Hakkesteegt12-Nov-09 20:18 
GeneralRe: Sorting Excel range of cells by column in VB Pin
nhsal6913-Nov-09 0:08
nhsal6913-Nov-09 0:08 
GeneralRe: Sorting Excel range of cells by column in VB Pin
Johan Hakkesteegt13-Nov-09 3:14
Johan Hakkesteegt13-Nov-09 3:14 
QuestionChange Process Name Pin
Anubhava Dimri11-Nov-09 18:49
Anubhava Dimri11-Nov-09 18:49 
AnswerRe: Change Process Name Pin
The Man from U.N.C.L.E.11-Nov-09 22:40
The Man from U.N.C.L.E.11-Nov-09 22:40 
QuestionVB.NET Audio Help Pin
smccloud11-Nov-09 16:34
smccloud11-Nov-09 16:34 
AnswerRe: VB.NET Audio Help Pin
Eduard Keilholz11-Nov-09 23:35
Eduard Keilholz11-Nov-09 23:35 
GeneralRe: VB.NET Audio Help Pin
smccloud12-Nov-09 2:56
smccloud12-Nov-09 2:56 
GeneralRe: VB.NET Audio Help Pin
Eduard Keilholz12-Nov-09 4:56
Eduard Keilholz12-Nov-09 4:56 
QuestionFile read and write as a stream Pin
Praveen Thankappan11-Nov-09 8:13
Praveen Thankappan11-Nov-09 8:13 
AnswerRe: File read and write as a stream Pin
EliottA11-Nov-09 8:42
EliottA11-Nov-09 8:42 
AnswerRe: File read and write as a stream Pin
Christian Graus11-Nov-09 9:44
protectorChristian Graus11-Nov-09 9:44 
GeneralRe: File read and write as a stream Pin
Smithers-Jones12-Nov-09 2:46
Smithers-Jones12-Nov-09 2:46 
GeneralRe: File read and write as a stream Pin
Praveen Thankappan12-Nov-09 7:02
Praveen Thankappan12-Nov-09 7:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.