I have a massive amount of data and want to delete all rows that contain "2007" in any cell in that row. Any tips?
I have a massive amount of data and want to delete all rows that contain "2007" in any cell in that row. Any tips?
washburn321,
Welcome to the forum. You could use a macro. To add a macro to a workbook:
- Save a copy of the Excel workbook you want to modify
- Always test macros in a copy so that the original is preserved in case the modifications don't go smoothly
- Open the copy of the Excel workbook you want to modify
- Use the keyboard shortcut ALT+F11 to open the Visual Basic Editor
- Insert -> Module
- Copy/Paste the code into that area
To run a macro in a workbook:
- In Excel (not the Visual Basic Editor) press the keyboard shortcut ALT+F8
- Double-click the desired macro (I named this one MassDeleteMacro_for_washburn321)
Macro code:
![]()
Please Login or Register to view this content.
Hope that helps,
~tigeravatar
Hello, I need to find and delete all rows that contain the words "Job Date:". Can you help me with a macro for that? Thanks!
![]()
I guess this will be the formula, based upon the previous macro. Just change the String value.![]()
Please Login or Register to view this content.
I get a "Compile Error" Invalid outside procedure. I'm a total novice, so please forgive me. I copied the part above starting at "Const" though "xlShiftUp", saved it then ran that macro. Am I even doing that part correctly?
Yes, that should be correct if you are entering it into an already existing macro.
I just tested the macro, worked perfectly for me.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks