Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-14-2016, 09:48 PM
macropod's Avatar
macropod macropod is offline Expanding tables with calculating form fields? Windows 7 64bit Expanding tables with calculating form fields? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,369
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by Father View Post
So Word doesn't have an option like Acrobat to put a "CLEAR FORM" button?


Not a huge... It's simple enough to do like you said.
No, though one could do that quite easily with a few lines of VBA:
Code:
Sub ClearForm()
Application.ScreenUpdating = False
ActiveDocument.Unprotect Password:=StrPwd
ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=False, Password:=StrPwd
Application.ScreenUpdating = True
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #2  
Old 12-15-2016, 03:08 PM
Father Father is offline Expanding tables with calculating form fields? Windows 7 32bit Expanding tables with calculating form fields? Office 2013
Novice
Expanding tables with calculating form fields?
 
Join Date: Nov 2016
Posts: 29
Father is on a distinguished road
Default

Is there a way to assign which cell the mass amount goes into?
Right now it all goes to the same cell.
If you add a row and select the other option, after the alert boxes have been filled in, the results for the mass go into the cell in the first row.

Quote:
Originally Posted by macropod View Post
No, though one could do that quite easily with a few lines of VBA:
What is the trigger for that? Does it clear it when you open the form?
Reply With Quote
  #3  
Old 12-15-2016, 04:09 PM
macropod's Avatar
macropod macropod is offline Expanding tables with calculating form fields? Windows 7 64bit Expanding tables with calculating form fields? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,369
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by Father View Post
What is the trigger for that? Does it clear it when you open the form?
The trigger is the user choosing to clear the form by running the macro (e.g. via a keyboard shortcut that you might assign). I doubt you'd want it to run every time you open the document...

If you're wanting pristine documents to work with, save one as a Word template (i.e. File>Save As>Save As Type:Word Macro Enabled Template (*.dotm)), then create new documents from that. See:
https://support.office.com/en-us/art...2-1191BCE57DEB
http://word.mvps.org/FAQs/Customizat...platePart1.htm
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Tags
calculating values, expanding table, form fields

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to keep formatted form fields after mail merge or replace text with formatted form fields jer85 Word VBA 2 04-05-2015 10:00 PM
Expanding tables with calculating form fields? Tables with form fields step10 Word 18 11-12-2013 02:27 PM
Enable editing in expanding fields marweste Word 11 10-21-2013 07:41 AM
How to prevent Tables from expanding HappyFingers Word 1 11-29-2010 01:54 PM
Calculating Form Fields in Microsoft Word wubba80 Word 1 06-25-2010 12:42 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:17 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft