Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using INDEX in VBA


It seems the more I learn about VBA, the more I want to do with it!

I am trying to use Excel's INDEX function in VBA to return a value from
the second column in a list from a sheet labelled "Set Up"...is this
proper syntax, because I get nothing:

MET = Application.Index(Range("Set Up!$AY$6:$AZ$149"), 57, 2)

MsgBox "Returned value is " & MET

...(I have defined all variables earlier)

None of my books cover using INDEX in VBA, what you see above I have
gleaned from earlier posts here, hoping it would work.

I would really appreciate any feedback here, so I can go farther!

-Dave


--
Applewine
------------------------------------------------------------------------
Applewine's Profile: http://www.excelforum.com/member.php...fo&userid=5512
View this thread: http://www.excelforum.com/showthread...hreadid=520907

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using INDEX in VBA


Well it was an obvious Syntax violation!
(What was I thinking)

Application.INDEX(Worksheets("Set Up").Range("----

Instead of

Application.INDEX(Range("Set Up!----

Thanks anyway!

-Dave


--
Applewine
------------------------------------------------------------------------
Applewine's Profile: http://www.excelforum.com/member.php...fo&userid=5512
View this thread: http://www.excelforum.com/showthread...hreadid=520907

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
Index and #NA ronnomad Excel Discussion (Misc queries) 3 August 27th 09 05:12 PM
Chart axes color index vs font color index [email protected] Charts and Charting in Excel 4 December 7th 06 04:05 PM
How do I pull the col. index value as well as row index value Vikram Dhemare Excel Discussion (Misc queries) 1 March 29th 06 07:48 AM
INDEX brianTmcnamara Excel Worksheet Functions 1 January 24th 06 10:34 PM
Index needs a little help Reignman Excel Worksheet Functions 1 July 7th 05 03:54 AM


All times are GMT +1. The time now is 10:25 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"