I probably missed to write this; the variable I'm trying to replace is itself within a table.
When using the suggested method nothing happends more than that the variable dissapears from the document.
When replacing avariablenot within another table it works.
Is thah how the function should work or is it a bug?
/Peter