You can also use a range with the words
Easier to change then
See this tip for the first macro on this page
http://www.rondebruin.nl/delete.htm
If Not IsError(Application.Match(.Value, _
Array("jelle", "ron", "dave"), 0)) Then .EntireRow.Delete
'Or use this one with Application.Match if you want to check more values.
'in the cell. You can also use a range with the values to delete.
'Replace Array("jelle", "ron", "dave") with Sheets("Sheet1").Range("A1:A200")
--
Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm
"Opal" <(E-Mail Removed)> wrote in message news:0be8f2d8-c50e-43a6-90bd-(E-Mail Removed)...
On Sep 15, 1:32 pm, "Ron de Bruin" <rondebr...@kabelfoon.nl> wrote:
> The example is working for column A on my page
>
> What are the values that you want to delete in Column A ?
>
> --
>
> Regards Ron de Bruinhttp://www.rondebruin.nl/tips.htm
>
>
>
> "Opal" <tmwel...@hotmail.com> wrote in messagenews:39415e0f-fc51-44dc-a0cc-(E-Mail Removed)...
> >I have a file that I update weekly and the data source has been
> > changed to include more data than what I need. I cannot sort
> > the data from the source so I am trying to create a macro in
> > excel to remove the extra data I do not need. I only need 14
> > rows of data, but my source now gives me 55.
>
> > I have looked at Ron DeBruin's site for assistance:
>
> >http://www.rondebruin.nl/delete.htm#Find
>
> > But since I need to remove 41 rows of unneeded data, I was
> > unsure how to adapt it to my needs. I want to be able to
> > remove rows based on the text value in column A.
>
> > Does anyone have any advice?- Hide quoted text -
>
> - Show quoted text -
Hi Ron,
I used your code from your site and typed in all 41 values I want to
delete in this line:
myStrings = Array("Ron", "Dave", "Tom")
it works, but I wondered if there was a more effective way to achieve
my results.