Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How do I get the value of c pasted into say C4, after the Do statement?
Should be easy, but I'm overlooking something? Thanks Sub Find() Dim myValue As Range Set myValue = Range("C5") With Worksheets(1).Range("a1:a100") Set c = .Find(myValue, LookIn:=xlValues) If Not c Is Nothing Then firstAddress = c.Address Do ________________ y = MsgBox("Do you want to find Next?", vbYesNo, "Find Next?") If y = vbNo Then Exit Do Set c = .FindNext(c) Loop While Not c Is Nothing And c.Address < firstAddress End If End With End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Find Cut and paste | Excel Discussion (Misc queries) | |||
Find, copy and paste | Excel Discussion (Misc queries) | |||
Find, Cut, Paste and Delete | Excel Worksheet Functions | |||
Macro to Find, Cut, and Paste | Excel Discussion (Misc queries) |