View Single Post
 
Old 11-19-2013, 01:11 AM
Nicolette Nicolette is offline Windows 7 64bit Office 2010 64bit
Novice
 
Join Date: Nov 2013
Posts: 1
Nicolette is on a distinguished road
Default select statement in macro

Hi
Receive a report in Excel every week, I have to remove some of the rows which is not relevant to division. I want to record a macro to do this, but when I record it the code would like this:

If Range("A12").select
Selection.EntireRow.Delete

I want code that will search through the column A and if the text in the column is "First Line" for example then it should delete the row.
Reply With Quote