Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I would like to move records based on a flag.
I do NOT want to just copy the record. How do you do this? I would like to walk the records, and then if the flag is true, them move it to a diff worksheet. I imagine it would be something like: sub MoveRec reccount= RowCount for i =1 to reccount if active.cell(0,3) then Worksheets("Sheet1").Range("A:ZZ").Cut ActiveSheet.Paste Destination:=Worksheets("Sheet2").Range("A:ZZ") endif next i end sub Will this work? I don't want to try it until I get somebodys OK that this will do what I want it to do. Is there a better way to do this? Thanks Phil |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel arrows don't move black box but move the window | Excel Discussion (Misc queries) | |||
Delete records when certain records have duplicate column data | New Users to Excel | |||
How do I stop making the spreadsht move when I move up/dwn/lt/rt? | Excel Worksheet Functions | |||
When I move scroll bar in excell the contents do not move with it | Excel Discussion (Misc queries) | |||
Be able to move not delete filtered records, to see the duplicats | Excel Worksheet Functions |