Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all!
The following macro check if there is a "1" in column "E". If so, it copies the line in sheet2, if not, then nothing. I would like the same kind of macro but for the chain of characters "CA" that may appear in the words in the cells. Can you help me?! Thank you! Dim wsS As Worksheet, wsD As Worksheet Dim lr As Long, i As Long, j As Long Set wsS = Sheets("Sheet1") Set wsD = Sheets("Sheet2") lr = wsS.Cells(Rows.Count, "A").End(xlUp).Row j = 1 For i = 1 To lr If wsS.Cells(i, 5) = 1 Then wsS.Rows(i).Copy wsD.Rows(j) j = j + 1 End If Next i Souriane |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Passing an event up the chain. | Excel Programming | |||
Chain IF formula help | Excel Worksheet Functions | |||
Find numeric characters found within cell text and convert tohyperlink | Excel Programming | |||
How to chain VBA applications | Excel Programming | |||
Chain Printing | Excel Programming |