Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 252
Default How to use worksheet function Index

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default How to use worksheet function Index

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 789
Default How to use worksheet function Index

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using INDIRECT Function and INDEX Function ChristopherG Excel Discussion (Misc queries) 1 June 10th 09 04:07 PM
index, match, offset worksheet function sand Excel Worksheet Functions 3 March 20th 08 10:02 PM
Index Function/Match Function M Moore Excel Discussion (Misc queries) 3 September 3rd 06 11:49 AM
Emulate Index/Match combo function w/ VBA custom function Spencer Hutton Excel Worksheet Functions 2 May 2nd 05 05:26 PM
resequence worksheet index after deletion of worksheet tango Excel Programming 2 November 29th 04 11:23 AM


All times are GMT +1. The time now is 02:56 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"