C
carlo
You could have written a little bit more.
if you want to do it in vba use this function
function swap(cell1 as range, cell2 as range)
dim Temp_val as variant
Temp_val = cell1.value
cell1.value = cell2.value
cell2.value = Temp_val
end function
hth
Carlo
if you want to do it in vba use this function
function swap(cell1 as range, cell2 as range)
dim Temp_val as variant
Temp_val = cell1.value
cell1.value = cell2.value
cell2.value = Temp_val
end function
hth
Carlo