View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
rojobrown
 
Posts: n/a
Default An "If" statement coded in a macro

Hello all!!

I am trying to do a macro that will look for a number in column A and then
replace the contents in column c with a 15.

Example
A B C
123456 400
ABC123 400
XYZABC 400
I want it to look for 123456 and XYZABC and replace the 400 with a 15. Is
there anyway to do this in a macro?
--
Thanks a bunch!
rojobrown