Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
| Search | Today's Posts | Mark Forums Read
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 29th, 2008, 09:35 PM
Authorized User
 
Join Date: Jun 2008
Location: sydney, nsw, Australia.
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to mona_upm84
Default Move cursor to specific textbox

Hi all,

I really need help, I need to submit my program very soon. Help me with this situation.

User need to enter his/her name into TextBoxName. After user press ENTER, cursor have to move to TextBoxPhone and TextBoxName will be disabled from any alteration. In my situation, cursor move to TextBox Poscode. I don't want that :(

Coding:

Private Sub TextBoxName_Exit(ByVal Cancel As MSForms.ReturnBoolean)
If Me.TextBoxName.Text <> "" Then
Me.TextBoxPhone.Setfocus
Me.TextBoxName.Enabled = False
End If
Exit Sub





Similar Threads
Thread Thread Starter Forum Replies Last Post
Move cursor to specific textbox mona_upm84 Excel VBA 3 September 22nd, 2016 10:29 AM
Javascript to move cursor frm one textbox to othr lakshmi_annayappa Javascript 1 July 23rd, 2007 05:16 AM
Move image when cursor approaches sanjana Pro Visual Basic 2005 1 July 19th, 2007 04:55 PM
Move cursor to beginning of field in form Odeh Naber Access 3 June 5th, 2007 04:21 PM
how shall I move the cursor? nerssi Javascript 0 September 21st, 2004 09:27 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.