Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how to extract text from a TextBox

Hi

I'm using the following code to extract text from a TextBox

Function getTextBoxContents(text_box_name As String, sheet_name As String) As Strin

Dim i As Intege

For i = 1 To Sheets(sheet_name).Shapes.Coun

Dim text_box As Shap
Set text_box = Sheets(sheet_name).Shapes.Item(i

Dim text_frame As TextFram
Set text_frame = text_box.TextFram

If text_frame.Parent.name = text_box_name The
getTextBoxContents = text_frame.Characters.Tex
Exit Fo
End I

Next

End Functio

I pass the function the name of the text box and the name of the sheet it's on, and I get back the text. The problem is, I only get the first 255 characters

Does anybody know how to get more then 255 characters from a TextBox

Thanks
Jim
Reply
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
Extract Data From Textbox SEA Excel Worksheet Functions 6 February 5th 09 08:21 PM
how to format text in textbox? ghost Excel Discussion (Misc queries) 1 May 18th 08 10:41 AM
Textbox text visibility bcelestia Excel Discussion (Misc queries) 2 January 11th 07 08:47 AM
Textbox Text is Truncated Mel Torme Excel Programming 1 December 5th 03 03:19 PM
check variable(text) with cell (text), textbox Mark[_17_] Excel Programming 1 August 27th 03 01:15 PM


All times are GMT +1. The time now is 06:40 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"