Hey, im trying to visit a range of cells, but some cells have a formula such as =D1/D2, but lets say D2 is a zero, then the cell displays "DIV/0!", so i want to say
that if the cell equals that value then to simply replace it with a dash (-), so i put
if activecell.value = "DIV/0!" then
activecell.value = "-"
end if
i've even tried activecell.formula = "DIV/0!", but i keep getting a TYPE MISMATCH error every time
so how do i say around this so that it recognizes the value div/0!, not the formula behind it, thanks
that if the cell equals that value then to simply replace it with a dash (-), so i put
if activecell.value = "DIV/0!" then
activecell.value = "-"
end if
i've even tried activecell.formula = "DIV/0!", but i keep getting a TYPE MISMATCH error every time
so how do i say around this so that it recognizes the value div/0!, not the formula behind it, thanks