Code Help

  • Thread starter Thread starter DaveB
  • Start date Start date
D

DaveB

Can you please help me with some code:

I have 3000 +/- rows in my worksheet, with only one
column. In any row, if the word "INC" is present in
a sentence, then in column two I want the word "CORP" to
appear. Thanks in advance.

DaveB
 
try this simple macro

Sub findinc()
Cells(Columns(1).Find("INC").Row, "b") = "CORP"
End Sub
 

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