Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm trying to loop down a column and copy and paste the values to
another wb depending on the cell value. Possibly something like this? set ws = activesheet set wb = workbooks.open("c:\file.xls") set rng = .range(.cells(1, 1), .cells(rows.count, 1).end(xlup)) for each i in rng select case cells(i, 1) case "x" cells(i, 1).copy wb.range("a1").paste case "y" cells(i, 1).copy wb.range("b1").paste case "z" cells(i, 1).copy wb.range("c1").paste end select next Thanks, -- Dan |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy and Paste Conditional Formatting | Excel Discussion (Misc queries) | |||
Copy & paste conditional format | New Users to Excel | |||
Conditional Copy Paste Macro | Excel Discussion (Misc queries) | |||
Conditional Copy and paste | Excel Programming | |||
Conditional copy & paste | Excel Programming |