Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Index and #NA | Excel Discussion (Misc queries) | |||
Chart axes color index vs font color index | Charts and Charting in Excel | |||
How do I pull the col. index value as well as row index value | Excel Discussion (Misc queries) | |||
INDEX | Excel Worksheet Functions | |||
Index needs a little help | Excel Worksheet Functions |