Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
the following code writes the whole row, when the look value is found if i require from the found row, only value (number, string or date) in cell of columns c,d,e,j,k,m only has to be brought, then what should be my code. For lngRow = 1 To lngLastRow1 ' If Format(SourceSheet.Range("A" & lngRow), "ddmmm") = "05Aug" Then If SourceSheet.Range("E" & lngRow).Value = varFind Then SourceSheet.Rows(lngRow).Copy TargetSheet.Rows(lngLastRow2 + 2) lngLastRow2 = lngLastRow2 + 1 End If Next thank you all. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
copy matching value rows to other sheet | Excel Discussion (Misc queries) | |||
count number of rows with 2 matching text cells | Excel Worksheet Functions | |||
Matching rows in 2 sheets and copying matching rows from sheet 1 t | Excel Programming | |||
copy / paste selective rows | Excel Discussion (Misc queries) | |||
Loop cells - get all rows with matching data - paste into different wb | Excel Programming |