+ Reply to Thread
Results 1 to 4 of 4

How to set focus on a button used in a sheet

  1. #1
    Registered User
    Join Date
    06-11-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    8

    How to set focus on a button used in a sheet

    Hi, I want to set focus on a button used in an excel sheet and I dont know any function to do so. Can anyone help me in this.

  2. #2
    Valued Forum Contributor
    Join Date
    05-21-2009
    Location
    Great Britain
    MS-Off Ver
    Excel 2003
    Posts
    550

    Re: How to set focus on a button used in a sheet

    Here's one way. Change the sheet and command button name as required.
    Please Login or Register  to view this content.
    Post responsibly. Search for excelforum.com

  3. #3
    Registered User
    Join Date
    06-11-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: How to set focus on a button used in a sheet

    Hi Chippy, Thanks for your solution.

    But I am using a form control button in my sheet not the command button, I tried with your code for that button but it's not working. Can you help me?

  4. #4
    Valued Forum Contributor
    Join Date
    05-21-2009
    Location
    Great Britain
    MS-Off Ver
    Excel 2003
    Posts
    550

    Re: How to set focus on a button used in a sheet

    My code is for a command button from the Control Toolbar (ActiveX controls). These type of buttons automatically change appearance (have a raised effect) when they have focus, therefore the button having focus is apparent to the user.

    I experimented with Forms Toolbar buttons (Excel 2003), however they don't change appearance automatically when clicked, therefore the concept of a forms button having focus doesn't apply - I might be wrong though. Maybe your code could set the button's font to bold or another change of appearance to indicate 'focus'.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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