View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Dan Gesshel Dan Gesshel is offline
external usenet poster
 
Posts: 20
Default Deleting/Replacing Values in a Range

Hello.

I am trying to delete (or replace with nothing) values in a range. For
example, the word "Blank" in the following range I am using:

sInput.Range("Y22:Y200").Replace What:="Blank", Replacement:="",
LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False

This works, but is there a better way of writing this... or perhaps
something more efficient? I don't have to necessarily use replace, as
deleting these values would suffice. Any help would be appreciated.

Thanks.

Dan