Information générale
Catégorie:
COM/DCOM et OLE Automation
In VB for Word, I use
editselectall
lockFields/unlockdfields
updateFields
Can't you do this? Because of various virii, you may find your scripts disabled if attached to a button.
>I am currently generating an MS Word doc from VFP which contains a Word 'table'. The last row of the table has a field with a formula that sums the values of the fields in that column. The problem is that Word does not automatically update the total when a number is changed. It only updates when you select the total field and press F9, or when you print the doc, if the Update Fields option is checked.
>If the user changes a number and does not do the F9, the total displayed is incorrect.
>
>One solution I'm considering is to drop a button on the doc so that the user can be reminded that an update has to be done before the correct total will be displayed, and also to update the total when clicked. I can programatically drop a button on the doc, but how can I programatically write code for it's click event?
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement