Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default TextBox focus

Sheet1.TextBox1.Activate

--
Regards,
Tom Ogilvy

"René" wrote in message
...
Hi!

I'm validating a TextBox, if there is no data, then a MsgBox pop up

telling the user what they need to do.

What I would like to happen after they click the "OK" of the MsgBox is the

cursor be placed in the TextBox.

Here is part of my code:

If Sheet1.TextBox1.Value = "" Then
MsgBox "Please enter a name"
Sheet1.TextBox1.SetFocus
End If

Thanks in advance



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
Textbox focus lost Stift[_25_] Excel Programming 7 June 7th 04 09:58 AM
TextBox Focus John Wilson Excel Programming 6 January 16th 04 09:59 PM
event which occurs when a TextBox receives focus Mikhail Excel Programming 2 October 7th 03 02:27 PM
Which textbox have focus? Tom Ogilvy Excel Programming 0 August 27th 03 03:12 PM
UserForm TextBox to ActiveSheet TextBox over 256 characters Dan E[_2_] Excel Programming 1 July 28th 03 07:36 PM


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