Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-09-2014, 04:04 AM
macropod's Avatar
macropod macropod is offline Extract form fields to Word Document Windows 7 32bit Extract form fields to Word Document Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,523
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 RonNCmale View Post
I got it to pull the info into the target document, but the information is halfway down the document and is not indented, nor is there a space after the first formfield text.
• The 'halfway down' is because you have a bunch of empty paragraphs after the 'Re:'. Click on the ¶ symbol on the Home tab to expose them.
• The lack of indenting is because that's how the last paragraph (the one where the code starts inserting) is formatted that way. If you format the last paragraph with the required attributes, anything inserted by the code will retain that format.
• The lack of a space between paragraphs is because you haven't specified any before/after spacing as part of the paragraph format. You could work around that by adding another '& vbCr' to 'wdTgtDoc.Range.InsertAfter .FormFields(4).Result & vbCr', but that really isn't how it should be done.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #2  
Old 01-11-2014, 03:56 AM
RonNCmale RonNCmale is offline Extract form fields to Word Document Windows 7 64bit Extract form fields to Word Document Office 2003
Novice
Extract form fields to Word Document
 
Join Date: Sep 2012
Posts: 15
RonNCmale is on a distinguished road
Default

I've run into a bit of a quandary!

This code works well and does exactly what I requested, but I have one doc form that has two formfields that need to be extract to the target document, It pulls the formfield 4 on all documents, but I can't get it to pull formfield 1 and formfield 4 on the first document. If it matters, the formfields for the source document that has two formfields are named MyField, and MyField1. It's only on one document.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Inserting spreadsheet data rows as form fields in a document b3nz Word 3 03-31-2013 07:47 PM
Form Fields in Word jwm1346 Word 1 04-17-2012 07:02 PM
Extract form fields to Word Document Issues with Microsoft Word Form Fields hbforsyth Word 9 11-14-2011 04:26 PM
Calculating Form Fields in Microsoft Word wubba80 Word 1 06-25-2010 12:42 AM
Form fields in Word messed up mba Word VBA 0 02-07-2010 09:54 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:39 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