LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Pointing specific textbox

"Bobby" wrote in message
...
On Apr 28, 3:39 pm, Mike wrote:
TRY THIS
Private Sub UserForm_Initialize()
TextBox3.SetFocus
End Sub



"Bobby" wrote:
Hi,
Could someone tell how to initialize or place the cursor in a specific
box on a userform, when I open the userform containing 4 text boxes.
By default it goes in the first one.


Thank's ahead.
.- Hide quoted text -


- Show quoted text -


Rick, to apply your recommandation regarding the usage of the group,
there are 3 buttons:

Reply Reply to author Forward

Which one should I use?

Regarding my last question, there no need for validation in this
Userform. Just an assignment to specific cell.
Thank's and regards.


In that case, I would just assign the TextBox's ControlSource property to
the cell you want to display the text in. You will find the ControlSource
property in the Project Properties window... just select the TextBox first,
then type in the address (along with its worksheet) in the space to the
right of the ControlSource property; for example, Sheet3!H7. You can do that
for each TextBox (using a different cell address, of course)... then, when
the user hits the Enter key or moves the focus to another control, the text
in the TextBox will be entered into the specified cell.

--
Rick (MVP - Excel)

 
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
Paste TextBox value to worksheet with specific format Patrick C. Simonds Excel Programming 1 July 11th 09 11:55 PM
pointing to the c:\ drive Cockneygeordie Excel Discussion (Misc queries) 0 July 5th 06 03:34 PM
Textbox Hyperlink opens VB Editor at Specific Module Neily[_3_] Excel Programming 0 October 26th 05 12:04 PM
Goto Specific Textbox in Userform Kris_Wright_77[_2_] Excel Programming 3 August 10th 05 03:23 PM
Set Tab to specific textbox control mandy_less[_3_] Excel Programming 3 September 23rd 03 08:40 AM


All times are GMT +1. The time now is 12:16 PM.

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"