Macro to search for a text string

  • Thread starter Thread starter tc
  • Start date Start date
T

tc

Hi. i need to create a macro that will search for a particular string.
is this possible?
 
Something like this?
Dim sString as String
sString="WhateverYouAreLookingFor"
Cells.Find(What:=sString, After:=Range("A1"), LookIn:=xlFormulas,
LookAt _
:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext,
MatchCase:= _
False, SearchFormat:=False).Activate
 
tc

This is much less specific than the earlier and similar question you asked
(and didn't respond to). What would you like to do when you find this string?

Mike
 
tc

This is much less specific than the earlier and similar question you asked
(and didn't respond to). What would you like to do when you find this string?

Mike





- Show quoted text -

hi. to be more specific i need to search for a string named "Grand
Total" on a worksheet and then delete the entire row which contains
this value
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top