Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

jens

ResolvedVersion 2010

Wasay has attended:
Excel Advanced - Formulas & Functions course

Jens

If it is not a date how do I delete the whole row? (Macro)

RE: Jens

Hi Wasay,

Thank you for the forum question.

In the workbook please press ALT F11 to open the Visual Basic Editor. In the project explorer (Left top box) right click on the workbook containing the date and click INSERT Module.

In the new module type:

Sub removeUnWantedRows()

Columns(1).Cells.SpecialCells(xlCellTypeConstants, xlTextValues).EntireRow.Delete

End Sub

Make sure that the sheet with the data is the active sheet before you run the macro.


Kind regards

Jens Bonde
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
Best STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

Sat 13 Jun 2015: Automatically marked as resolved.

Excel tip:

Purchase excel

Buy MS Excel on Amazon.com

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.08 secs.