i have one sheet with my data and i want a macro to compare by pairs the values which is just numbers and write the result in an another sheet.When i did it to the same sheet it was OK but i can't connect the two sheets.
I want to do something like that :
Sub aaa()
if sheet1 cells(1, 1) = sheet1 cells(1, 3) then
if sheet1 cells(1, 2) = shhet1 cells(1, 4) then
word=1
else:word=" "
end if
end if
end sub
it tells me that Sub or Fuction not defined
I want to do something like that :
Sub aaa()
if sheet1 cells(1, 1) = sheet1 cells(1, 3) then
if sheet1 cells(1, 2) = shhet1 cells(1, 4) then
word=1
else:word=" "
end if
end if
end sub
it tells me that Sub or Fuction not defined