+ Reply to Thread
Results 1 to 2 of 2

Focus on Textbox

  1. #1
    Registered User
    Join Date
    11-24-2012
    Location
    UAE
    MS-Off Ver
    Excel 2010
    Posts
    11

    Focus on Textbox

    Hi,

    I was trying to have the the mouse focused on to the textbox when an option button is selected, but it seems not working. Could someone check and let me know what could be the reason? I believe it is a simple solution, but my mind is not allowing me to find it out

    Please Login or Register  to view this content.
    Regards,
    Seemanth

  2. #2
    Forum Expert
    Join Date
    06-25-2009
    Location
    Sofia, Bulgaria, EU
    MS-Off Ver
    Excel 2003-2013
    Posts
    1,290

    Re: Focus on Textbox

    Hi,
    probably it's because TextBox1 is not enabled and it's not possible to set focus on control that is not enabled. Try this:
    Please Login or Register  to view this content.
    By the way, it may be good idea to take care for the case when option button Age is false (if you haven't done so in another sub).
    Last edited by buran; 03-09-2014 at 02:55 AM.
    If you are pleased with a member's answer then use the Star icon to rate it.

  3. #3
    Registered User
    Join Date
    11-24-2012
    Location
    UAE
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Focus on Textbox

    Hi buran,

    It gives me Run-time error "438"

    Regards,
    Seemanth

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Textbox focus
    By tradinup2 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-08-2013, 12:25 AM
  2. Textbox loses focus?
    By mike0123m in forum Excel General
    Replies: 1
    Last Post: 02-28-2012, 06:44 PM
  3. Moving focus back to first textbox
    By LisaPatch in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 11-01-2011, 10:23 AM
  4. setting focus on a textbox
    By Geordie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-08-2010, 12:26 PM
  5. How to tell what textbox got the focus
    By vqthomf in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-18-2005, 09:15 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1