Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello
I have a an array called myarray(50) in vb I am feeding numbers from a table into the array through a loop. How do i then get the highest number out of the array Thanks in advance James |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
James,
application.worksheetfunction.Max(myarray) Cheers, Pete. -----Original Message----- Hello, I have a an array called myarray(50) in vba I am feeding numbers from a table into the array through a loop. How do i then get the highest number out of the array? Thanks in advance, James . |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
AFAIK there's no build-in function for this. So you have to loop through your array. One workaround could be to put your array into a (hidden) worksheet range and use the application.worksheetfunction.max function on this range -----Original Message----- Hello, I have a an array called myarray(50) in vba I am feeding numbers from a table into the array through a loop. How do i then get the highest number out of the array? Thanks in advance, James . |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello James
Maxvalue = Application.WorksheetFunction.Max(myarray) will do the trick. -- Best Regards Leo Heuser Followup to newsgroup only please. "JAmes L" skrev i en meddelelse ... Hello, I have a an array called myarray(50) in vba I am feeding numbers from a table into the array through a loop. How do i then get the highest number out of the array? Thanks in advance, James |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Use of arrays | Excel Worksheet Functions | |||
Use of arrays | Excel Worksheet Functions | |||
two arrays | New Users to Excel | |||
Need help with arrays (I think) | Excel Worksheet Functions | |||
arrays again | Excel Programming |