1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
function macro1
if range("a1").value < range("b1").value then
macro1=false
exit sub
end if
if range("a1").value < range("b2").value then
macro1=false
exit sub
end if
if range("a2").value < range("b1").value then
macro1=false
exit sub
end if
if range("a2").value < range("b2").value then
macro1=false
exit sub
end if
if range("a2").value < range("a1").value then
macro1=false
exit sub
end if
if range("b2").value < range("b1").value then
macro1=false
exit sub
end if
if au moins une des cellules est Empty then
macro1=false
exit sub
end if
macro1=true
end function |