Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If this accidentally posts twice, then I apologize as I have been having
connection problems today. This goes back to a post I made on Aug.12 about populating a list box. Now, I was wondering how, or if it's even possible, to substitute variables into the VLOOKUP formula: ..formula = "=vlookup(" & Cells(RowNdx, ColNdx).address _ & ",'C:\Documents and Settings\HP_Owner\My Documents\" _ & "[Repository.xls]Grade 4'!$A$1:$X$23," & t & ", 0)" Specifically, the document path, the sheet name, and the range. I have the document path declared as: Public Const studentFile As String = "C:\Documents and Settings\HP_Owner\My Documents\Repository.xls" The sheet name as: Public grade As String And as far as the range, I thought: Sheets(grade).UsedRange.address I've tried to substitute these variables into the formula in various combinations, but I can't seem to get anything to work. Does anyone have any ideas on this one? Mark |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
comparing two columns revisited | Excel Worksheet Functions | |||
14 Day Average REVISITED | Excel Discussion (Misc queries) | |||
Help with averages revisited | Excel Worksheet Functions | |||
array revisited | Excel Programming | |||
Last row, last column revisited | Excel Programming |