Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Word
application.errors
conversions
docmanagement
drawing.graphics
formatting.longdocs
international
internet.assistant
mail
mailmerge.fields
menustoolbars
newusers
numbering
oleinterop
pagelayout
printingfonts
setup.networking
spelling.grammar
tables
vba.addins
vba.beginners
vba.customization
vba.general
vba.userforms
web.authoring
word6-7macros
word97vba
  
 
date: Tue, 26 Aug 2008 11:46:04 -0700,    group: microsoft.public.word.tables        back       


How do I write a macro that updates a calculated field in a form?   
I have a small table in a WORD form with a simple formula that I would like 
to have automatically calculate for the end users. The formula is SUM(above). 
 I don't want the users to have to lock & unlock the form, but can not figure 
out a macro to unlock, calculate the SUM or insert the formula, and re-lock 
the form.  The macro stops recording as soon as I click the lock form button. 
Also, can I create a "button" within the form for the macro?  Any 
suggestions?  Thank you.
date: Tue, 26 Aug 2008 11:46:04 -0700   author:   djjones

Re: How do I write a macro that updates a calculated field in a form?   
You don't need a macro to update the field. Calculated fields in protected 
documents update automatically provided (a) "Calculate on exit" is checked 
for each form field that contributes to the calculation, and (b) users tab 
out of the fields (a proper "exit") rather than just click elsewhere.

-- 
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

"djjones"  wrote in message 
news:44E24352-C8BF-48BE-875E-F18F51AF7117@microsoft.com...
>I have a small table in a WORD form with a simple formula that I would like
> to have automatically calculate for the end users. The formula is 
> SUM(above).
> I don't want the users to have to lock & unlock the form, but can not 
> figure
> out a macro to unlock, calculate the SUM or insert the formula, and 
> re-lock
> the form.  The macro stops recording as soon as I click the lock form 
> button.
> Also, can I create a "button" within the form for the macro?  Any
> suggestions?  Thank you.
>
date: Tue, 26 Aug 2008 14:13:08 -0500   author:   Suzanne S. Barnhill

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us