+ Reply to Thread
Results 1 to 5 of 5

Combobx always lost his focus when i type in Combobox

  1. #1
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Combobx always lost his focus when i type in Combobox

    hi,
    i am filtering my data (Range("b4:b100") using combobx1 (in sheet not userform) = doing good
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    now i want to select visible cell from Filtered data of Range("a4:a100")
    Please Login or Register  to view this content.
    and if i add this code to my filter code
    Please Login or Register  to view this content.
    now combobox1 is losing focus

    hope some one will help
    Attached Files Attached Files
    Use Code-Tags for showing your code :
    Please mark your question Solved if there has been offered a solution that works fine for you
    If You like solutions provided by anyone, feel free to add reputation using STAR *

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Combobx always lost his focus when i type in Combobox

    It's merely logic that when shifting focus to another object (worksheet in this case) that your Combo loses focus.
    Is it really needed to select the filtered range ? What do you want to do with it ?
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Combobx always lost his focus when i type in Combobox

    I want to highlight the visible row of filtered data
    like this
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Combobx always lost his focus when i type in Combobox

    Actually i want to run this macro when i press enter in combobox1 and after this combobox1 should be selected...
    Please Login or Register  to view this content.

  5. #5
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Combobx always lost his focus when i type in Combobox

    Sorry for delay, but this should do it.

    Please Login or Register  to view this content.

+ 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. excel lost focus
    By loadii in forum Office 365
    Replies: 1
    Last Post: 03-23-2017, 05:41 PM
  2. [SOLVED] Create unique list using Dictionary Object in Combobx 2 based off selection of Combobox 1
    By escobf in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-12-2013, 01:27 PM
  3. [SOLVED] ComboBox when external value change other combobx return Value
    By feroguz in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-14-2013, 04:33 PM
  4. Keep UserForm Linked to Particular Workbook Even if Focus is Lost
    By prattleon in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-20-2010, 02:49 PM
  5. Activate Excel window if focus lost
    By beeawwb in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-01-2008, 08:27 PM
  6. [SOLVED] Address of Cell that lost focus?
    By HotRod in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-27-2005, 10:06 AM
  7. Lost Focus apply to cell
    By John in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-26-2005, 01:20 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