Hi Bruno,
How are you doing this? Your description of the result suggests you're using
field coding.
You could use a formula field, in the form of:
{=B1*B2/100}
where your row names are in column A and the values are in column B.
Alternatively, you could use:
{=VILIQUIDO*IRS/100}
where 'VILIQUIDO' and 'IRS' are bookmark names. The trick with using
bookmarks in tables is to only bookmark the values - not the whole cells.
Formula fields don't require any vba, but they also don't recalculate
reliably unless you do something explicit to cause them to (eg printing the
document with the 'update fields' property set, or using a protected form
with the 'calculate on exit' property set for each formfield that feeds into
the formula). If you're using vba, you could still use these formulae with a
line like 'ActiveDocument.Fields.Update' in the code.
Cheers
> Hi everyone,
> i having troubles to do an formula in Word. i have a table with three lines.
> the 1st it has the VILIQUIDO, the 2nd has IRS and the 3rd has the result. the
> Result is (VILIQUIDO*IRS)/100. this VILIQUIDO and IRS are Marker in word
> template. the result aren't appear, it appears 0,0
> any sugestion