Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I have several fields of type inputField and always and every time when they filled with do not regain the initial value of 0.
How do you open the document where the fields will inputField zero.
Hi Gleybson, I do not write in portuguesse but I am able to understand since I speak spanish, you are right it will only reset the first value of the inputfield, this one should reset all the values:
Sub setCampos
set fld = ActiveDocument.Fields("Custo")
fld.ResetInputFieldValues 0
end sub
Regards
Hi I think you may use a macro, triggered on open document event or triggered by a button in the application. Your macro code, might look similar to the following:
set fld = ActiveDocument.Fields("Budget")
fld.SetInputFieldValue 0, "0"
Regards
Ivan,
a macro foi essa que coloquei
Sub setCampos()
set fld = ActiveDocument.Fields("Custo")
fld.SetInputFieldValue 0, "0"
end sub
Acionada atravez de um botão, mas não funcionou.
Hi Gleybson, I do not write in portuguesse but I am able to understand since I speak spanish, you are right it will only reset the first value of the inputfield, this one should reset all the values:
Sub setCampos
set fld = ActiveDocument.Fields("Custo")
fld.ResetInputFieldValues 0
end sub
Regards
Ivan, sorry, his name thought you were Brazilian.
well, this time it worked perfectly.
Thanks.