find a word [include wild card] and delete Row

Please help. I just want to find "Manually Constructed" but best to look for Manually* [* being the wild card* and then delete the row using VBA

appreciate your help
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rob HensonFinance AnalystCommented:
Will it be in a particular column?

Use Auto Filter and set Filter to 'Contains' ~ Manually

Rob H
JagwarmanAuthor Commented:
Column A need VBA
Rob HensonFinance AnalystCommented:
Do it manually and record the steps with the VBA Recorder. That will give you the steps required.

Rob H
Introduction to Web Design

Develop a strong foundation and understanding of web design by learning HTML, CSS, and additional tools to help you develop your own website.

ProfessorJimJamMicrosoft Excel ExpertCommented:
here is the VBA solution for you.  run this in a backed up file.

assuming your data is in A column. change  A1 in line 7 to the column Letter , if your data is not in column A

it will delete the entire row for the cell that has text Manually in it. regardless whether there is any prefix or suffix

Sub RemoveRows()

Dim i As Long

i = 1

Do While i <= ThisWorkbook.ActiveSheet.Range("A1").CurrentRegion.Rows.Count

    If InStr(1, ThisWorkbook.ActiveSheet.Cells(i, 1).Text, "Manually", vbTextCompare) > 0 Then
        ThisWorkbook.ActiveSheet.Cells(i, 1).EntireRow.Delete
        i = i + 1
    End If


End Sub

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Rob HensonFinance AnalystCommented:
BTW, when data is filtered, selecting the visible rows as a block and deleting will only delete the visible rows. When the filter is then removed the rows which were hidden will re-appear and will not be affected by the delete.

Just saying because for a simple filter such as this I see it as a bit overkill to put in VBA.

Rob H
JagwarmanAuthor Commented:
Exactly what I needed thanks
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.