How to search for a value in a range if found run a procedure.
Solved/Closed
Related:
- How to search for a value in a range if found run a procedure.
- How to search for a word on a page - Guide
- How to search within a youtube channel - Guide
- How to search google usa - Guide
- Yahoo search history - Guide
- Search google or type a url gif - Guide
2 responses
MaxStart
Posts
339
Registration date
Tuesday March 3, 2015
Status
Moderator
Last seen
July 3, 2015
69
Apr 29, 2015 at 10:45 AM
Apr 29, 2015 at 10:45 AM
You need to trigger the macro while the Worksheet_Change event occurs
and what cell will contain the text "Lost", or is it going to be in a range?
and what cell will contain the text "Lost", or is it going to be in a range?
MaxStart
Posts
339
Registration date
Tuesday March 3, 2015
Status
Moderator
Last seen
July 3, 2015
69
Apr 29, 2015 at 11:42 AM
Apr 29, 2015 at 11:42 AM
to get to the workshet_change event: hit Alt + F11 to get to the developer window
use this code to check the range L6 to L100 for the word "Lost"
please note that this is case sensitive:
Je ne parle pas français, mais je l'aime.
je ne pas change.
use this code to check the range L6 to L100 for the word "Lost"
please note that this is case sensitive:
Private Sub Worksheet_Change(ByVal Target As Range) Dim i As Integer i = 6 Do Until i = 100 If Cells(i, 12).Value = "Lost" Then CopyCells End If i = i + 1 Loop End Sub
Je ne parle pas français, mais je l'aime.
je ne pas change.
Apr 29, 2015 at 10:53 AM
private sub worksheet_change()??
Also i want to be able to pick up from the range L6 to L100 for the text Lost to trigger my macro Copycells,