Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Index(Match...

I have used Index(Match in my spreadsheets to sum data etc. However, when I
take it to VBA via the Application.WorkSheet function, I get an error. Here
is the code:

MyEventRow=Application.WorkSheetFunction.Index(Mat ch,TabName,Sheets("Lists")
..Range("J3:J20"),0),0)
The error focuses on "Match" and says that the function has not been
defined.

I have a list of "Event" tabs in a sheet I call "Lists" (Events are Prg Mgmt
Milestones & not Excel events)
Basically I need to lookup the row of the "Event" in the "Lists" sheet based
on the name of the currently selected tab/sheet.

How can I do this?

GMet


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 131
Default Index(Match...

I think you are missing some parentheses - it needs to be
of the form Match(....) and you have Match,...

My guess is that this is what you need:

MyEventRow=Application.WorkSheetFunction.Index(Mat ch
(TabName,Sheets("Lists")..Range("J3:J20"),0)),0)

-----Original Message-----
I have used Index(Match in my spreadsheets to sum data

etc. However, when I
take it to VBA via the Application.WorkSheet function, I

get an error. Here
is the code:

MyEventRow=Application.WorkSheetFunction.Index

(Match,TabName,Sheets("Lists")
..Range("J3:J20"),0),0)
The error focuses on "Match" and says that the function

has not been
defined.

I have a list of "Event" tabs in a sheet I call "Lists"

(Events are Prg Mgmt
Milestones & not Excel events)
Basically I need to lookup the row of the "Event" in

the "Lists" sheet based
on the name of the currently selected tab/sheet.

How can I do this?

GMet


.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default Index(Match...

Glen,

You also need Application.WorkSheetFunction. in front of "Match" plus the parentheses after.

Regards,
Jim Cone
San Francisco, CA

"GMet" wrote in message ...
I have used Index(Match in my spreadsheets to sum data etc. However, when I
take it to VBA via the Application.WorkSheet function, I get an error. Here
is the code:

MyEventRow=Application.WorkSheetFunction.Index(Mat ch,TabName,Sheets("Lists")
.Range("J3:J20"),0),0)
The error focuses on "Match" and says that the function has not been
defined.

I have a list of "Event" tabs in a sheet I call "Lists" (Events are Prg Mgmt
Milestones & not Excel events)
Basically I need to lookup the row of the "Event" in the "Lists" sheet based
on the name of the currently selected tab/sheet.

How can I do this?

GMet


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Index(Match...

With Application.WorkSheetFunction
.Index(.Match,TabName,Sheets("Lists").Range("J3:J2 0"),0),0)
End With

--

HTH

RP

"GMet" wrote in message
...
I have used Index(Match in my spreadsheets to sum data etc. However, when

I
take it to VBA via the Application.WorkSheet function, I get an error.

Here
is the code:


MyEventRow=Application.WorkSheetFunction.Index(Mat ch,TabName,Sheets("Lists")
.Range("J3:J20"),0),0)
The error focuses on "Match" and says that the function has not been
defined.

I have a list of "Event" tabs in a sheet I call "Lists" (Events are Prg

Mgmt
Milestones & not Excel events)
Basically I need to lookup the row of the "Event" in the "Lists" sheet

based
on the name of the currently selected tab/sheet.

How can I do this?

GMet




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
Find Exact Match using INDEX, MATCH DoubleUU Excel Worksheet Functions 3 August 15th 08 02:42 PM
index(match) Wind Uplift Calculations (match four conditions) JMeier Excel Worksheet Functions 8 August 1st 08 01:45 AM
index match array function-returning only first match, need last. Julie Olsen Excel Worksheet Functions 3 December 29th 06 12:50 AM
How do I display more than one match in a Index/Match formula? Trish Excel Worksheet Functions 0 September 26th 05 10:21 PM
index,match,match on un-sorted data Brisbane Rob Excel Worksheet Functions 3 September 24th 05 10:04 PM


All times are GMT +1. The time now is 03:26 PM.

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

About Us

"It's about Microsoft Excel"