LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 42
Default Passing more than 255 characters

Hi - need help
I would like to pass text from one text box to another. The text is more
than 255 characters in length which Excel has a problem with.

I have tried this:
Sub LoadBox(FBox, TBox)
Set F1 = ActiveSheet.Shapes(FBox)
Set T1 = ActiveSheet.Shapes(TBox)
P = F1.TextFrame.Characters.Text
With T1
.TextFrame.Characters.Text = ""
For i = 0 To Int(Len(F1.TextFrame.Characters.Text) / 255)
.TextFrame.Characters(.TextFrame.Characters.Count + 1).Insert _
Mid(P, (i * 255) + 1, 255)
Next
End With
End Sub

- but this will only pass 255 characters.
Any help appreciated.
TIA
Andrew Bourke
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
convert 5 characters in a cell to 6 characters by adding a zero Helenf Excel Discussion (Misc queries) 4 May 18th 09 04:43 PM
Insert Leading Characters If String Is Only 7 Characters Paperback Writer Excel Discussion (Misc queries) 2 April 21st 09 09:07 PM
In Excel find characters when multiple characters exist w/i a cel teacher-deburg Excel Worksheet Functions 1 December 5th 05 10:22 PM
HOW DO I EXTRACT ALL CHARACTERS AFTER 5 CHARACTERS ON LEFT GRYSYF Excel Worksheet Functions 5 October 12th 05 10:58 AM
Passing parameters to UDF mbobro[_3_] Excel Programming 5 January 2nd 04 04:25 PM


All times are GMT +1. The time now is 12:29 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"