Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Sub Macro5() ' Dim nameRange As Range Dim wksQB As Worksheet Dim wksMDR As Worksheet Dim var As Variant Dim cell As Range Set wksQB = ActiveWorkbook.Sheets("QueryBuster") Set wksMDR = ActiveWorkbook.Sheets("MDR Worksheet") Set nameRange = wksQB.Range("E2", Range("A65536").End(xlUp)).SpecialCells(xlCellType Visible) wksQB.Range(nameRange).Select For Each cell In nameRange var = Application.Match(cell, wksMDR.Columns(1), 0) If Not IsError(var) Then GoTo NextVar ActiveCell.Value = wksMDR.Range("A2", Range("A65536").End(xlUp).Offset(1, 0)).Value NextVar: Next cell End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy entire row from another sheet onto first sheet if a unique text matches | Excel Worksheet Functions | |||
copy unique values into listbox, then modify sheet from these values | Excel Programming | |||
Copy Paste from Class Sheet to Filtered List on Combined Sheet | Excel Programming | |||
Copy rows with unique values to another sheet | Excel Programming | |||
Counting Unique Cells When Spread Sheet is Filtered | Excel Worksheet Functions |