Check the value and return the result
Closed
saran
-
Sep 14, 2009 at 04:33 AM
venkat1926 Posts 1863 Registration date Sunday June 14, 2009 Status Contributor Last seen August 7, 2021 - Sep 14, 2009 at 09:15 PM
venkat1926 Posts 1863 Registration date Sunday June 14, 2009 Status Contributor Last seen August 7, 2021 - Sep 14, 2009 at 09:15 PM
Related:
- Check the value and return the result
- Check soft - Download - Finance
- If a cell has text then return value ✓ - Excel Forum
- Speaker check code - Guide
- Tmobile data check - Guide
- If cell contains date then return value ✓ - Office Software Forum
1 response
venkat1926
Posts
1863
Registration date
Sunday June 14, 2009
Status
Contributor
Last seen
August 7, 2021
811
Sep 14, 2009 at 09:15 PM
Sep 14, 2009 at 09:15 PM
try
Sub test() Dim rng As Range, c As Range, x As String, cfind As Range With Worksheets("sheet2") Set rng = Range(.Range("A1"), .Range("A1").End(xlDown)) For Each c In rng x = c.Value Set cfind = Worksheets("sheet1").UsedRange.Cells.Find _ (what:=x, lookat:=xlWhole) If Not cfind Is Nothing Then c.EntireRow.Copy With Worksheets("sheet3") .Cells(Rows.Count, "A").End(xlUp).Offset(1, 0).PasteSpecial End With End If Next c End With Application.CutCopyMode = False End Sub