View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Stuart Stuart is offline
external usenet poster
 
Posts: 62
Default VBA search and compare strings

I have an Excel spreasheet and in worksheet_1 I have a word in each cell from E2 to H51. On worksheet_2 I have a column of cells each with two words in them. I am trying to write a VBA macro that says; if a word from range E2:H26 and a word from range E27:H51 is in a cell in worsheet_2 then write a "No" in the next column in workshhet_2 but on the same row, else write a "Yes".

Many thanks for any help.

Stuart