![]() |
#1
|
|||
|
|||
![]()
Hi!
How can i insert a FormField on Word whit more than 500 characters, by VBA? I'm trying by code below, but it's inserting only the first 255 characters an the lasts 255 characters, but my complete text has around 900 characters, its inserting my text cuting.. If Len(FillText) > 255 Then SecondBit = Right(FillText, 256) .FormFields("fldIndeferidos").Result = FirstBit .Unprotect .Bookmarks("fldIndeferidos").Range.InsertAfter SecondBit .Protect Type:=wdAllowOnlyFormFields, NoReset:=True Else ActiveDocument.FormFields("fldIndeferidos").Result = FillText End If ...i have tryed change the code to create ThirdBit for more than 510 characteres, but i had not success.. Thanks |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
aditya_bokade | Word VBA | 28 | 11-13-2021 10:48 PM |
Macro to insert WordArt characters | Jennifer Murphy | Word VBA | 1 | 02-25-2014 03:10 AM |
![]() |
Joachim | Word | 4 | 03-08-2013 01:56 AM |
Junk characters (box-like characters) in Word file | Sashikala | Word | 1 | 04-20-2010 02:03 PM |
Auto populate formfield from dropdown menu | jmofstead | Word | 0 | 02-26-2010 10:35 AM |