Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Am new on macros and need assistance to adjust the macro below for
undetermined ranges Dim rng As Range Dim i As Integer With Worksheets("sheet1") Set rng = .Range("a2:b8") End With For i = 1 To 7 With Worksheets("sheet2") 'assuming the data you want goes to column b and 'the lookup value is in Column A' ..Cells(1 + i, 2) = Application.WorksheetFunction.VLookup(.Cells(1 + i, 1), rng, 2, 1) End With Next i |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
vlookup more than 2 range | Excel Discussion (Misc queries) | |||
Using VLOOKUP with a 3D range | Excel Worksheet Functions | |||
Summing values from an undetermined number of sheet | Excel Worksheet Functions | |||
Vlookup where range changes | Excel Worksheet Functions | |||
Summing undetermined colums | Excel Programming |