ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Conditional Copy (https://www.excelbanter.com/excel-programming/294530-conditional-copy.html)

pambear

Conditional Copy
 
I want to copy a row of data only if the value in column
B is a particular customer's name. How do I
conditionally copy data?



Frank Kabel

Conditional Copy
 
Hi
have a look at
http://www.rondebruin.nl/copy5.htm

--
Regards
Frank Kabel
Frankfurt, Germany

"pambear" schrieb im Newsbeitrag
...
I want to copy a row of data only if the value in column
B is a particular customer's name. How do I
conditionally copy data?




Grey Newt

Conditional Copy
 
I need more info really - but assuming your code is walking down a load of rows - a simple IF would do the job.

If lcase(Range("B" & activecell.row).value)="fred bloggs" the
....do the cop
els
activecell.offset(1,0).selec
end if


All times are GMT +1. The time now is 04:50 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com