Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / October 2007

Tip: Looking for answers? Try searching our database.

Textbox Form Fields

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John Viall - 04 Oct 2007 03:58 GMT
I am trying to drop text into a formfield using the following command:

ActiveDocument.FormFields("txtObComments").Result = tempComments

I get the error "string too long".  I have set the property of the form
field to be unlimited, however still no luck.  After setting a Watch, the
actual length was 710 characters in length.  Any ideas?

As a backup plan, I am looking at creating multiple "txtObComments" on the
fly, and dropping in the comments at 500 characters a pop, in the hopes that
works.  How do I change the name of a formfield in code?  I know how to add
it, but don't know if the name will be the same each instance.

Thanks,
John
Jay Freedman - 04 Oct 2007 04:10 GMT
Your backup plan isn't going to work, either, but this will:
http://word.mvps.org/FAQs/MacrosVBA/SetLongFmFldResult.htm

>I am trying to drop text into a formfield using the following command:
>
[quoted text clipped - 11 lines]
>Thanks,
>John

--
Regards,
Jay Freedman
Microsoft Word MVP        FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.
John Viall - 04 Oct 2007 04:46 GMT
Thanks, works great!

> Your backup plan isn't going to work, either, but this will:
> http://word.mvps.org/FAQs/MacrosVBA/SetLongFmFldResult.htm
[quoted text clipped - 20 lines]
> Microsoft Word MVP        FAQ: http://word.mvps.org
> Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.
John Viall - 04 Oct 2007 05:19 GMT
Thanks, works great!

> Your backup plan isn't going to work, either, but this will:
> http://word.mvps.org/FAQs/MacrosVBA/SetLongFmFldResult.htm
[quoted text clipped - 20 lines]
> Microsoft Word MVP        FAQ: http://word.mvps.org
> Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.