View Full Version : Solved: Find text in a column then move the row to left
farrukh
02-21-2012, 04:16 AM
Hi All,
I need a piece of code that look in column b specific text if find then move the row to starting point A row.
Thanks
farrukh
Bob Phillips
02-21-2012, 04:25 AM
Set cell = Columns(2).Find("my value")
Cells(cell.row, "A").Select
raji2678
02-22-2012, 10:21 PM
As i understand, if a particular value is found in a cell, you want to move the entire row to the beginnning, right?
Have a for loop to loop through all the rows, If the value is found, cut and paste that row. Hope this helps.
farrukh
02-22-2012, 11:06 PM
Yes exactly :)
raji2678
02-22-2012, 11:08 PM
Can I assume that your problem is solved? If yes, kindly update the status.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.