I have some textboxes that contain formula linking them to a cell value. They only show part of the text in the cell and I can't figure out why. I have attached a sample sheet in case anyone has any ideas.
I have some textboxes that contain formula linking them to a cell value. They only show part of the text in the cell and I can't figure out why. I have attached a sample sheet in case anyone has any ideas.
Last edited by rosshkerr; 03-13-2012 at 01:06 PM.
Cheers
Ross
Excel will truncate a passed string at 255 characters, so that is why your message is being cut off.
If you liked my solution, please click on the Star -- to add to my reputation
If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.
More than likely you can't have more than 256 characters.
Use this
=MID(B13,1,256)
-you will see it stops at the same place.
im trying to find a work around by using
=LEFT(B13,255)&MID(B13,255,255)
but it appears that a textbox will now allow that formula.
you could probably enter it in using a VBA macro though.
you may need to result to a VBA macro to get past the 255 character limit, i could not find any other way around it.
Any ideas about what the macro would look like?
somethign like this:
![]()
Sub textboxtext() ActiveSheet.Shapes("TextBox 1").Select Selection.Characters.Text = Left(Range("B13").Value, 255) & Mid(Range("B13").Value, 255, 255) End Sub
Excellent. Thank you very much
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks