Insert Character in a String

G

Guest

i need to handle text in a shape with thousand of characters

when i insert a character or a string by character location,
the insert method replace the string from position 10 to 265 with "a"
it is not like an insert method
ActiveSheet.Shapes("Text Box 17").Characters(10).insert("a")

how to do the insert task correctly??



and seems i can not save more than 255 characters in a string
but as in documentation, a string can store up to billions of characters

dim temp as string
temp = ActiveSheet.Shapes("Text Box 17").Characters(Start:=6,
Length:=256).text

is this part of the code have error instead of the string?
ActiveSheet.Shapes("Text Box 17").Characters(Start:=6, Length:=256)

What i can think about is to cut the string part by part.. and merge it
finally.
Is there any better way to do this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top