Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Selecting a text box

I am wanting to know if there is a way automaticly move to a text box after
selecting a check box or an option button.
example: Click on check box or option buton and the cursor shows up in the
text box automaticly.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Selecting a text box

Hi,

I assume here weree on a worksheet and lets suppose we have a checkbox and a
textbox. In design mode (I used the control toolbox) right click the checkbox
and view code and enter the code below in

Private Sub CheckBox1_Click()
TextBox1.Activate
End Sub

Go back to the worksheet and exit design mode and click your checkbox.

Mike

"ekreider" wrote:

I am wanting to know if there is a way automaticly move to a text box after
selecting a check box or an option button.
example: Click on check box or option buton and the cursor shows up in the
text box automaticly.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 206
Default Selecting a text box

If this is for a UserForm control then this would work

Private Sub CheckBox1_Click()
If CheckBox1 = True Then TextBox1.SetFocus
End Sub
..

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
Copying text from website OR selecting and coping certain text within a cell keri Excel Programming 2 April 12th 07 11:23 PM
Selecting just my text Johnny Bright Excel Programming 2 May 8th 06 06:47 PM
selecting certain text in long row of text Jonathan Excel Worksheet Functions 1 August 27th 05 12:26 AM
Selecting text steve Excel Programming 2 June 23rd 05 02:02 PM
Selecting text in cells & half of the Selected Text to be underLine Manish Singh Excel Programming 3 October 14th 04 07:34 PM


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