vba newbie looking for help

andybno1

New Member
Joined
Jul 23, 2018
Messages
1
so I have spreadhseet that I want to do a couple things in VBA and compatible with excel 2013

sheet1 (named complaints):
sort column E in numeric order older to new automatically as entered it will sort for me

when column I is marked yes to then move that entire row to sheet2 and removed from sheet1

sheet2 (named completed):
sort in date order older to newer in column I

anyone able to help?
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Hi andybno1, welcome to the board.


This sounds like an easy job for the macro recorder...


1. Power up the macro recorder and set her recording
2. Sort Column E
3. Apply a filter to your data
4. Filter Column I for yes
5. Copy this to a new sheet
6. Back to the previous sheet
7. Highlight the visible rows and right click >> Delete Rows
8. Unfilter column I
9. Stop the macro recorder.


The code will likely want tidied up some, made a little more robust and such. If you want a hand then post back what the record spat out :)
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top