View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
mangesh_yadav[_39_] mangesh_yadav[_39_] is offline
external usenet poster
 
Posts: 1
Default How To Iterate a range of cells?

just use the VLOOKUP function as follows

VariableToAdd
Application.WorksheetFunction.VLookup(str,range("A 1:B10"),2)

where str is your string and column A1 to A10 contains all the string
and cloumn B1 to B10 contain the numbers.

- Manges

--
Message posted from http://www.ExcelForum.com