Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi al,
I have a named range called List (A1:A10) and I want to retrieve the second item(A2) so the code is : worksheetfunction.index( "List", 2, 1), but I got "Unable to get the index property of worksheetfunction class". Clara -- thank you so much for your help |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
clara wrote:
Hi al, I have a named range called List (A1:A10) and I want to retrieve the second item(A2) so the code is : worksheetfunction.index( "List", 2, 1), but I got "Unable to get the index property of worksheetfunction class". Clara You will have to use a syntax like this: WorksheetFunction.Index(ThisWorkbook.Names("List") .RefersToRange, 2, 1) HTH, CoRrRan |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
Use worksheetfunction.index([list], 2, 1) The square brackets returns the "value" of the name "List" i.e. the range. regards Paul On Jun 7, 4:07 pm, clara wrote: Hi al, I have a named range called List (A1:A10) and I want to retrieve the second item(A2) so the code is : worksheetfunction.index( "List", 2, 1), but I got "Unable to get the index property of worksheetfunction class". Clara -- thank you so much for your help |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Using INDIRECT Function and INDEX Function | Excel Discussion (Misc queries) | |||
index, match, offset worksheet function | Excel Worksheet Functions | |||
Index Function/Match Function | Excel Discussion (Misc queries) | |||
Emulate Index/Match combo function w/ VBA custom function | Excel Worksheet Functions | |||
resequence worksheet index after deletion of worksheet | Excel Programming |