Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming,microsoft.public.vb.general
|
|||
|
|||
![]()
Try something like
Dim V As Variant Dim FoundCell As Range V = InputBox("Enter number") Set FoundCell = Range("A:A").Find(what:=V) If Not FoundCell Is Nothing Then FoundCell.EntireRow.Copy Destination:=Worksheets("sheet2").Range("A1") End If -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Chas" wrote in message ... I am writing an Excel VBA that prompts the user for a series of numbers. Next I want to compare that list against each cell in a column. If true, then copy that entire row to another sheet. I prefer not to have a nested For/Next loop. Is there another way to do this? For the VBA people, any simple examples? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Making Lists of numbers | Excel Discussion (Misc queries) | |||
How to determine the correlation between two lists of numbers? | Excel Discussion (Misc queries) | |||
Converting lists of numbers | Excel Discussion (Misc queries) | |||
solving lists of numbers problems | Excel Discussion (Misc queries) | |||
How do I compare two lists of numbers? | Excel Worksheet Functions |