Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have a following Function and the sort does not appear to be working :( . Any help is greatly appreciated. ******************* Function interpolate(kind As String, x As Long, inputx As Range, inputy As Range) Dim n As Integer, i As Integer, j As Integer, index As Integer n = inputx.Cells.Count ' I.Combine Xs in Ys into one range and sort it Dim rngXY As Range Set rngXY = Union(inputx, inputy) If rngXY.Rows.Count < rngXY.Columns.Count Then rngXY.Sort Key1:=rngXY.Cells(1, 1), Order1:=xlAscending, Orientation:=xlLeftToRight Else rngXY.Sort Key1:=rngXY.Cells(1, 1), Order1:=xlAscending End If 'More code End Function ******************* -- ______ Regards, Greg |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sort an array | Excel Programming | |||
Array sort | Excel Programming | |||
Array... Sort of... | Excel Worksheet Functions | |||
Sort an Array | Excel Programming | |||
sort an array | Excel Programming |