+ Reply to Thread
Results 1 to 3 of 3

How can I pass a TextBox (more than 255 chars) into Word Template FormField???

  1. #1
    Registered User
    Join Date
    11-17-2017
    Location
    Saskatoon, Saskatchewan
    MS-Off Ver
    2010, 2016
    Posts
    5

    Post How can I pass a TextBox (more than 255 chars) into Word Template FormField???

    I have been stuck on this for a long time, I'm trying to pass Excel UserForm TextBox (of more than 255 chars), into a Word Template FormField, but not having any success. I keep getting the String Too Long error. I know Excel Strings can be more than 255 chars, but just not sure how to go about passing it to Word. The following is what I have so far:

    Please Login or Register  to view this content.
    Can someone shed some light on this? I have been stuck on this one for weeks now and have not found a solution.

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: How can I pass a TextBox (more than 255 chars) into Word Template FormField???

    Hi,

    That seems to be a long-standing problem- https://wordmvp.com/FAQs/MacrosVBA/S...mFldResult.htm
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Registered User
    Join Date
    11-17-2017
    Location
    Saskatoon, Saskatchewan
    MS-Off Ver
    2010, 2016
    Posts
    5

    Re: How can I pass a TextBox (more than 255 chars) into Word Template FormField???

    Best solution I could come up with, is recreate the Word document in a new worksheet. Populate the appropriate cells and set the print range. Actually works better this way, don't get the delay of opening the word document and no issue with passing more than 255 chars.

    So my next question is, how do I mark this Solved?
    Last edited by jdr360; 12-14-2017 at 06:08 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Search a sting in word doc with more than 255 chars
    By shankha_29 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-14-2012, 03:33 PM
  2. How to pass a TextBox
    By Emilysouth in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-13-2011, 11:09 PM
  3. How do I pass a textbox on a spreadsheet to a function
    By ucchris77 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-12-2010, 10:52 AM
  4. Pass value and add line to multiline textbox
    By fredpox in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-18-2010, 06:02 AM
  5. Userform: Pass textbox values to another textbox on button press
    By adjustermn in forum Word Programming / VBA / Macros
    Replies: 3
    Last Post: 02-09-2010, 11:19 PM
  6. pass value of calendar form to textbox
    By tapapad in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-15-2008, 04:49 AM
  7. formfield in word document through excel
    By movi1982 in forum Excel General
    Replies: 0
    Last Post: 07-17-2006, 02:53 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1