Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagevb
if sheets(1).cells(i, 22).value <> "" then
  if sheets(1).cells(i, 6).value <> sheets(1).cells(i, 22).value then
    sheets(1).cells(i, 22).value = sheets(1).cells(i, 6).value  
  end if
end if

...

Code Block
languagevb
for i = 2 to sheets(1).usedrange.rows.count
    if sheets(1).cells(i, 22).value <> "" then
      if sheets(1).cells(i, 6).value <> sheets(1).cells(i, 22).value then
        sheets(1).cells(i, 22).value = sheets(1).cells(i, 6).value  
      end if
    end if 
next i