Good Evening,
I need some help with a macro please, I'm trying to cut data from rows in worksheet 1 when "yes" has been entered into column Q, then paste to next empty row in worksheet 2, but not having much idea of where to start.
Good Evening,
I need some help with a macro please, I'm trying to cut data from rows in worksheet 1 when "yes" has been entered into column Q, then paste to next empty row in worksheet 2, but not having much idea of where to start.
Record a macro while you filter column Q for yes. Select and cut the visible rows and paste them into next available row on sheet 2.
Trevor Shuttleworth - Retired Excel/VBA Consultant
I dream of a better world where chickens can cross the road without having their motives questioned
'Being unapologetic means never having to say you're sorry' John Cooper Clarke
Maybe:
Please Login or Register to view this content.
Thanks for this John,
When I try to run the macro I get "runtime error 9, subscript out of range?
Thanks Trevor,
When I try this the rows between the filtered "yes's" also get cut and pasted into sheet 2.
My desired outcome would be for the filtered "yes" rows to be cut and pasted as soon as yes was entered into the column
Try:
Please Login or Register to view this content.
Tried that John, but now get
Run-time error 1004
Application-defined or object-defined error
Suggest you post a sample workbook with some typical data.
I think the file attached ok.
Are you sure it's column Q we have to look at for filtering ?
Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.
Only had a quick look on my iPad, but the sheet name is different to what you said earlier.
Sorry, column M on this sheet please
Yes this sheet slightly altered but same issue, cut and paste row if m = yes
I'd just like to add that our thoughts are with you and all affected by the recent tragedies in your part of the world.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks