Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 106
Default Link Text Boxes (As can do in Word)

Hi,

I have text box controls (inserted from the Control Toolbox) in my worksheet
and am wondering if there is any way to program them so that text flows from
one into another when the text is longer than the text box.

I know this is easy with Word, and that there isn't an option in Excel, but
was wondering if this is something that could be programmed.

Thanks for any advice.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 921
Default Link Text Boxes (As can do in Word)

Try something like.

Option Explicit

Private Const TextMaxLength As Long = 10 ' Change to Suit

Private Sub TextBox1_Change()
If Len(TextBox1.Value) = TextMaxLength Then
TextBox2.Activate
End If
End Sub
'This is pretty basic
'Every time a character is added
'The code counts the total
'if it equals then specified max
'Then it moves to the next textbox



"Joyce" wrote:

Hi,

I have text box controls (inserted from the Control Toolbox) in my worksheet
and am wondering if there is any way to program them so that text flows from
one into another when the text is longer than the text box.

I know this is easy with Word, and that there isn't an option in Excel, but
was wondering if this is something that could be programmed.

Thanks for any advice.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 106
Default Link Text Boxes (As can do in Word)

Hi Jeff,

Thanks for the response. I tried this, but it didn't work. Am I missing
something?

I tried it in both the sheet and a module and added text boxes from the
Control Toolbox, but it didn't limit me to 10 characters.

Thanks.

"Jeff" wrote:

Try something like.

Option Explicit

Private Const TextMaxLength As Long = 10 ' Change to Suit

Private Sub TextBox1_Change()
If Len(TextBox1.Value) = TextMaxLength Then
TextBox2.Activate
End If
End Sub
'This is pretty basic
'Every time a character is added
'The code counts the total
'if it equals then specified max
'Then it moves to the next textbox



"Joyce" wrote:

Hi,

I have text box controls (inserted from the Control Toolbox) in my worksheet
and am wondering if there is any way to program them so that text flows from
one into another when the text is longer than the text box.

I know this is easy with Word, and that there isn't an option in Excel, but
was wondering if this is something that could be programmed.

Thanks for any advice.

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
Link Text Boxes on Form? Joyce Excel Discussion (Misc queries) 8 September 1st 09 06:20 AM
Text boxes and word art NOT printing Jenny Excel Discussion (Misc queries) 1 January 22nd 09 12:37 AM
How do I link Text Boxes to Cells, not Cells to Text Boxes? Ebby Excel Worksheet Functions 1 May 15th 07 11:31 PM
Allow Word type formatting in Excel text boxes bsassone Excel Discussion (Misc queries) 0 November 18th 05 02:24 AM
I want to link, not just copy,Word source text to a text box in Ex Carrie K Excel Worksheet Functions 0 August 12th 05 07:58 PM


All times are GMT +1. The time now is 02:54 AM.

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

About Us

"It's about Microsoft Excel"